NET/MASTER Network Control Language (NCL) Reference Manual

RESUME
Core Statements
106126 Tandem Computers Incorporated 2–49
RESUME The RESUME core statement returns control to the NCL line of code directly after the
statement that caused an ON block to be executed. The RESUME statement terminates
any execution environment established by the most recently executed ON block. This
includes DO groups and calls to procedures or functions.
If you attempt to issue a RESUME statement outside of an ON block, NCL generates a
run-time error. This situation can be intercepted or trapped as an error, but you
cannot resume the procedure a second time. If you attempt to resume, NCL
immediately terminates the procedure with an error message. You should test the
&SYS.ERROR.RESUMEOK system variable to determine if you can RESUME an NCL
procedure. Condition (error) handlers are described earlier in this section, in the ON
core statement definition.
RESUME
Considerations
The setting of the &SYS.ERROR.RESUMEOK system variable determines whether
you can RESUME an NCL procedure (&SYS.ERROR.RESUMEOK = 0 for NO or 1
for YES).
See also ON, RETRY, REVERT, and SIGNAL. These core statements are all
relevant to condition (error) handling. The ON core statement defines an ON
block, which determines what you want to do for a specified condition or error.
The RETRY core statement retries the statement that generated the condition or
error. The REVERT core statement deactivates an ON block. The SIGNAL core
statement generates a condition.