Function
The STOP statement causes a permanent or temporary suspension of the execution of the object program (run unit).
Format
STOP {RUN | literal}
Syntax rules
The literal may be numeric, alphanumeric or any figurative constant except ALL literal.
If the literal is numeric, it must be an unsigned integer.
If a STOP statement with RUN phrase appears in a sentence, then it must be the only statement in that sentence, or it must be the last statement in a sequence of imperative statements.
The STOP statement with the RUN phrase specified terminates execution of the program, and returns control to the operating system.
If STOP literal is used, the literal is communicated to the system operator. In this case, only the system operator can resume the program. Continuation of the program begins with the next executable statement.
General rules
If the number of characters of the alphanumeric literal exceeds the hardware capability of the master console or subconsole, then more than one physical output operation will be performed to output the literal.
During the execution of a STOP RUN statement, an implicit CLOSE statement without any optional phrases is executed for each file that is in the open mode in the run unit. Any USE procedures associated with any of these files are not executed.