Returning from an ILE COBOL Program

You can issue a STOP RUN, EXIT PROGRAM, or GOBACK statement to return control from a called ILE COBOL program.

You must know if an ILE COBOL program is a main program or a subprogram to determine how control is returned from a called program when an error occurs, or a program ends. See Main Programs and Subprograms for a description of main programs and subprograms.