[Audio] Assembler to Cobol code conversion process Prepared by Balaj Vijay 12/27/2023.
[Audio] Objective Convert the legacy Assembler program to COBOL program using the AI tools like AIcodeconveter.com and AI copilot Bing Chat with More precise option.
[Audio] Assembler 'Hello World' Program SAMPLE PROGRAM TO Display "Hello World" in Spool using Registers The AI converted COBOL program has proper data division variables & also it has converted the move instruction successfully, but it is not converting the Register related instructions. ThePhoto by PhotoAuthor is licensed under CCYYSA..
[Audio] Limitations The Register concept does not exist in COBOL . We will face hurdles whenever we tried to do conversion of Register related Instructions. Even in the above Assembler code AI not able to convert the instructions like STM – Store Multiple, XR - Exclusive or Register, LR – Load Register, MR – Move register, etc., COBOL doesn’t have equivalent function for Register related instructions..
[Audio] Grey Areas identified so far Register Loop File Handling.
[Audio] Loops Loop instruction's cobol Relevant function is Perform Until, but even the loop conversion is not 100% fool proof. 12/27/2023.
[Audio] Loop Program conversion In this sample Loop program Conversion, the highlighted lines from COBOL program clearly indicates the conversion has messed up the Looping logic. In the main procedure para we are moving zero to OUT-NUM field and OUT-NUM field is getting incremented by 1 in LOOP para, but the Perform Until is executed till OUT-NUM > 20, so in this case Loop won't ends. Sample Footer Text.
[Audio] File Handling File Handling program conversion has major obstacles in File variables declaration. The AI tool is not providing the proper file declaration in converted COBOL program. Sample Footer Text.
[Audio] File declaration 12/27/2023. A screenshot of a computer program Description automatically generated.
[Audio] Missing File definition There is no Environment Division or File section declared in the converted COBOL program where we used to provide the File type and Layout details. Instead, all the File Attributes got declared as independent variables in working storage section. 12/27/2023 Sample Footer Text.