Multiple choice technology mainframe

A cobol Program (Program A) calls Program B. What will happen, If STOP RUN is issued at the end of the Program B?

  1. The control will come back to Program A

  2. The control will not come back to Program A and program B will terminate at the end of the STOP RUN statement

  3. Program B abends Abnormally

  4. Infinite loop

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In COBOL, the STOP RUN statement terminates the entire run unit, not just the current program. When Program B (called program) executes STOP RUN, it immediately ends program execution and control does NOT return to Program A (the calling program). This is different from GOBACK or EXIT PROGRAM which would return control to the caller.