Friday, September 4, 2009

The STOP Statement

The STOP Statement
Syntax
Format
STOP { RUN
literal-1 }

Description
The STOP statement is used to stop programs. STOP RUN terminates the program. STOP literal displays the literal and waits for a response before continuing with the next executable statement.
Tips
1. Use the STOP RUN statement to terminate execution of a program.
2. Do not use the STOP RUN statement in a called subprogram, as it will cause the termination of the entire run unit. Instead, to terminate execution of a subprogram, use the EXIT PROGRAM statement.