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 ILE COBOL for AS/400 Programmer's Guide . For details on each individual program termination statement, see:
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.