PROCEDURE DIVISION
MAINPARA
DISPLAY "HELLO MAIN".
GO TO PARA1.
DISPLAY " SECOND DISPLAY".
STOP RUN.
PARA1.
DISPLAY " I AM IN PARA1".
PARA2.
DISPLAY "I AM IN PARA2"
....
PARA200
I have little understanding of the flow. But, I am confused. When control jump to GO TO PARA1
, it will execute PARA1
.
Now my question is:
- Will it execute
PARA2
and return toMAINPARA
? - Or will it execute from
PARA2
towards the end of the program?
I am not a COBOL programmer, and I need to understand code from a migration tool/process, AMXW COBOL. The target system is an IBM AS/400.