The STOP statement causes a permanent or temporary suspension of the execution of the object program.
The implicit or explicit usage of both identifier-1 and identifier-2 must be DISPLAY. literal-1 may be numeric or nonnumeric or may be any figurative constant.
If a STOP RUN statement appears in a consecutive sequence of imperative statements within a sentence, it must appear as the last statement in that sequence.
If the RUN phrase is used:
There is an implicit interaction between the STOP RUN statement and the RETURN-CODE special register. See the discussion of the RETURN-CODE special Register.
If STOP identifier-2 or literal-1 is specified, the value of the operand is displayed at the terminal associated with this run unit and execution of the run unit is suspended until the message is acknowledged. After the message is acknowledged, execution continues with the next executable statement.
STOP 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.