NET/MASTER Network Control Language (NCL) Reference Manual
ON
Core Statements
2–42 106126 Tandem Computers Incorporated
In the following example, an ON block is coded to specifically intercept or trap a user
error condition by using the SIGNAL core statement:
ONPROC: PROCEDURE
ON USER_ERROR DO
SAY "HERE IS THE USER ERROR"
END
SIGNAL USER_ERROR
END ONPROC
In the previous example, because there is no explicit action (such as including a
RESUME, or an EXIT statement) taken in the ON block, the procedure terminates with
an error code of 22.