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

Execution Techniques
Executing NCL Procedures
106160 Tandem Computers Incorporated 8–3
You can enter the EXEC command from any command input line including the OCS
command input line and the Log Browse command input line. From the OCS
command input line, the general form of the EXEC command is:
EXEC
ncl-procedure-name
From the Log Browse command input line, the general form of the EXEC command is:
/EXEC
ncl-procedure-name
Any NCL procedure can execute the EXEC command using either the CMD core
statement or the INTCMD verb. From an NCL procedure, the general form of the
command is one of the following:
CMD EXEC
ncl-procedure-name
INTCMD EXEC
ncl-procedure-name
Using the CMD core statement and the INTCMD verb with the EXEC command is
discussed in more detail in Section 16, “Environments and Command Processing.”
For more information on the EXEC command, refer to the NonStop NET/MASTER MS
Command Reference Manual.
Passing Parameters With the START or EXEC Command
When you execute an NCL procedure by using either the START or EXEC command
you can pass parameters to the NCL procedure. Each parameter you pass is placed in
variables from &1 through &n, where n is the number of the last parameter. These
variables are automatically created by NCL to hold the parameters you pass.
The following example passes two parameters (NNMLF and MYOLDPW) to the
SECCHECK NCL procedure by using the START command.
START SECCHECK NNMLF MYOLDPW
In this example, the first parameter, NNMLF, is placed in the variable &1 and the
second parameter, MYOLDPW, is placed in the variable &2.
Passing parameters to NCL procedures (and functions) is discussed in more detail in
Section 6, “Procedures and Functions.”
Note You cannot share variables using the EXEC or START command. You must use the CALL core
statement to share variables from one procedure (or function) to another. Sharing variables and the
CALL core statement are discussed in Section 6, “Procedures and Functions.”