Exiting Processing Blocks
Processing blocks can be implicitly exited by
or program-driven exiting, using these statements:
CHECK SELECT-OPTIONS(obsolete, for logical databases only)
REJECT(obsolete, for logical databases only)
. The onward flow of the program depends on the type of processing block.
In addition to the statements described here, statements that call other units without returning to the caller after the call is made, also end their processing block. These include:
Exiting a procedure by pressing
CHECK) is the error-free way to end the procedure. Formal parameters for
which the pass by value is defined are not passed to the assigned actual parameters only if the procedure terminates after an error (if an exception is raised or a message is sent).