NET/MASTER Network Control Language (NCL) Reference Manual

SELECT
Core Statements
106126 Tandem Computers Incorporated 2–63
Example
The following example shows an NCL procedure called SELECTEP. This procedure
uses the SELECT statement to evaluate the parameter entered when the procedure is
executed. The procedure performs a simple test of equality. This is an example of
Format 2 of SELECT:
SELECTEP: PROCEDURE
/* Second form of SELECT */
SELECT &1
WHEN A THEN
SAY 'First parameter = A'
WHEN B THEN
SAY 'First parameter = B'
OTHERWISE
SAY 'First parameter is neither A nor B'
END
END SELECTEP