COBOL/400 Language Help


GOBACK Statement

Description
The GOBACK statement specifies the logical end of a called program. It functions like the EXIT PROGRAM statement when coded as a part of a called program, and like the STOP RUN statement when coded in a main program. In a sentence, the GOBACK statement should appear as the only statement or as the last statement in a series of imperative statements, because any statements following GOBACK are not executed.

If control reached a GOBACK statement in a subprogram in a COBOL run unit, control returns to the point in the calling program immediately following the CALL statement, as in the EXIT PROGRAM statement.

->->---GOBACK-----------------------------------><-
 


[ Top of Page | Previous Page | Next Page | Table of Contents ]