Difference between EXIT PROGRAM, GOBACK, STOP RUN in COBOL

Published on January 8, 2024

Let us assume we have a Batch JOB step which executes MAIN-PGM. Let us assume job step has below call chain. MAIN-PGM --> SUB-PGM1 --> SUB-PGM2 --> SUB-PGM3That is MAIN-PGM calls SUB-PGM1SUB-PGM1 program inturn calls SUB-PGM2SUB-PGM2 program inturn calls SUB-PGM3A run unit is a running set of one or more programs that communicate with each other by COBOL static or dynamic CALL