NET/MASTER Network Control Language (NCL) Reference Manual
Summary of Core Statements
Core Statements
2–2 106126 Tandem Computers Incorporated
Summary of Core
Statements
Table 2-1 contains a list and a brief description of all core statements. For a detailed
description of each statement, see the entry for that statement in this section. The
entries are arranged in the same order as they appear in this table.
Table 2-1. List of Core Statements
Core Statement Description
Assignment
Statement
Assigns the value of an expression to a specified variable.
CALL Calls an NCL procedure.
CMD Issues a NonStop NET/MASTER Management Services (MS) command.
DO Brings multiple statements together for execution either once, repeatedly, or not at
all.
END Ends a DO group, or a FUNCTION, PROCEDURE, or SELECT statement.
EXIT Ends the current procedure and returns control to the caller.
FLUSH Terminates an NCL process.
FUNCTION Declares a user-written function.
GOSUB Registers the current position in the procedure, then branches to the statement at
a specified label.
GOTO Transfers control to a label within a procedure or function.
IF Evaluates an expression and selects an execution path based on the outcome.
ITERATE Performs the next iteration of a repetitive DO group.
LEAVE Exits a repetitive DO group.
NOP Performs no action.
ON The ON core statement establishes a routine to handle a run-time event.
PROCEDURE Indicates the start of a procedure that can be called.
RESUME Returns to the statement after the one that caused an ON block to be executed.
RETRY Returns to and retries the statement that caused an ON block to be executed.
RETSUB Returns to the statement after the most recently executed GOSUB statement in a
procedure.
RETURN Returns to the calling function or procedure.
REVERT Releases a condition handler for the specified condition name.
SAY Writes a message to the terminal’s OCS window or to the execution environment
of the process.
SELECT Selects one of several process paths, depending on a set of conditions.
SIGNAL Generates a specified condition or transfers control to a specific label.