The GOBACK statement specifies the logical end of a called program.
The GOBACK statement is equivalent to the sequence:EXIT PROGRAM.
The GOBACK statement must appear as the only statement, or as the last of a series of imperative statements, in a sentence.
The GOBACK statement must not appear in a declarative procedure in which the GLOBAL phrase is specified.
If control reaches a GOBACK statement while operating under the control of a CALL statement, control returns to the point in the calling program immediately following the CALL statement.For details, see the discussion of the EXIT PROGRAM statement.
If no CALL statement is active and the GOBACK statement is executed in the main program, control returns to the invoker (which may be the operating system and thus cause the end of the run unit).
GOBACK Statement Examples
COBOL Related Interview Questions
|VSAM Interview Questions||IBM - VSAM Interview Questions|
|IBM-CICS Interview Questions||JCL Interview Questions|
|IBM DB2 Interview Questions||IBM-JCL Interview Questions|
|DB2 Using SQL Interview Questions||IBM-JCL&VSAM Interview Questions|
|IBM Mainframe Interview Questions||COBOL, CICS, JCL, VSAM, DB2 Interview Questions|
|DB2 SQL Programming Interview Questions||IMS/DB Interview Questions|
|Mainframe DB2 Interview Questions|
Procedure Division Statements
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.