NET/MASTER Network Control Language (NCL) Programmer's Guide

Language Elements
NCL Summary
106160 Tandem Computers Incorporated 2–7
Table 2-5. Summary of Core Statements
Core Statement Description
Assignment
statement
Assigns a value to a variable.
CALL Calls an NCL procedure.
CMD Issues a NonStop NET/MASTER MS command for execution in the current
execution environment.
DO Executes a group of statements once or repetitively.
END Terminates an NCL procedure or function declaration, or ends a SELECT group or
DO group.
EXIT Returns from the current NCL procedure to the calling NCL procedure.
FLUSH Terminates an NCL process from any nesting depth.
FUNCTION Declares a user-written function.
GOSUB Calls a subroutine within the current NCL procedure or function.
GOTO Unconditionally transfers control to the statement beginning with the specified
target label within the current NCL procedure or function.
IF Tests an expression and selects one of two execution paths based on the
outcome.
ITERATE Performs the next iteration of a repetitive DO loop.
LEAVE Exits a repetitive DO loop immediately.
NOP Performs no action, acts as a place holder.
ON Declares a routine to handle a specified error condition.
PROCEDURE Declares an NCL procedure.
RESUME Resumes execution from an error handler at the statement following the one that
raised the error handler.
RETRY Retries the statement that raised the error handler.
RETSUB Returns from a subroutine started with a GOSUB core statement.
RETURN Terminates execution of an NCL procedure or function.
REVERT Releases an error handler for the specified condition.
SAY Writes a message to a terminal or to the current execution environment of an NCL
process.
SELECT Tests an expression and selects one of multiple execution paths based on the
outcome.
SIGNAL Raises a specified error handler.
SIGNAL LABEL Transfers control to the statement beginning with the specified target label within
the current NCL procedure or function.