Program Termination Statements

The STOP RUN, EXIT PROGRAM, and GOBACK statements are used to return control from a called ILE COBOL program. The action taken for each program termination statement when an error occurs, or a program ends depends on whether control is returned from a main program or a subprogram. For details on the behavior of the EXIT PROGRAM, STOP RUN, and GOBACK statements under various conditions, see the section "Returning from an ILE COBOL Program" in the IBM Rational Development Studio for i: ILE COBOL Programmer's Guide . For details on each individual program termination statement, see: