COBOL Exit Program

COBOL Stoprun COBOL Go Back

Advertisements


EXIT PROGRAM specifies that the program came to end.

EXIT PROGRAM also responsible for returning the control to the calling program.

EXIT PROGRAM always coded in subprogram.

EXIT PROGRAM passed control to the statement which is immediately next to the active CALL statement in the main program.

If no active CALL statement is active, EXIT PROGRAM passes the control to exit through next executable statement.

Syntax:
	EXIT PROGRAM

EXIT PROGRAM is a PROCEDURE DIVISION statement which will be coded in AREA B.

Practicle Example


If any questions on the above, post your queries on Cobol Discussion forum


COBOL Stoprun COBOL Go Back

Advertisements