Monday, 28 July 2014

COBOL Stop Run Verb

The STOP RUN statement terminates the execution of the object program and transfers the control to MVS. 

If a STOP RUN statement appears in a sequence of imperative statements within a sentence, it must be the last or the only statement in the sequence. 

Format : 

Example :

The STOP RUN statement does not have to be the last statement in a sequence, but the statements following the STOP RUN will not be executed. In COBOL-85, the STOP RUN statement closes all the files that were opened/processed.


Created with Artisteer

No comments:

Post a Comment