NOCMPR2
Under NOCMPR2, all programs are assumed to end with an EXIT PROGRAM
statement. For a called subprogram, then, control can no longer flow
beyond the last line of the program, but instead, the program will
return to the calling program. In the preceding example, where the
program ended with the statement:
IF TALLY = 0 THEN STOP RUN.
a false test will cause control to be returned to the caller. With
CMPR2 behavior, the result is an abend.For a main program, the EXIT PROGRAM statement has no effect. Therefore, the implicit EXIT PROGRAM that is generated by the compiler will have no effect on the execution of the program; a main program that executes beyond the last line of the program will still abend.