NET/MASTER Network Control Language (NCL) Programmer's Guide
Writing NCL Procedures
Initial NCL Procedure Development
4–12 106160 Tandem Computers Incorporated
LEAVE, and SIGNAL LABEL core statements. The name space for these labels is
bound by the procedure or function in which the label occurs.
Labels of these core statements do not have to be unique within a procedure or
function and they can occur anywhere within the procedure or function.
NCL uses different rules to search and find each type of label. These rules are covered
in the sections that deal with each core statement that can use labels—Section 5,
“Controlling Execution Flow,” and Section 6, “Procedures and Functions.” These
sections include many examples that illustrate the scope of label name spaces in more
detail.
Empty Statements If you use the explicit statement terminator (;) in a context where it would normally
terminate a statement, but it is not preceded by a statement, it is regarded as a null
statement and ignored. You should use the NOP core statement in preference to this.
(NOP is a statement even though it performs no action.)
Writing NCL
Procedures
This subsection introduces you to writing NCL procedures by using Edit Services. It
covers the following topics:
Creating and modifying an NCL procedure
Deleting an NCL procedure
NCL procedure size
Performing a test compilation
For step-by-step instructions on performing the tasks described in this subsection, see
Section 3, “An NCL Tutorial.” Refer to the NonStop NET/MASTER MS Operator’s Guide
for detailed information on how to use Edit Services and OCS. If you do not know
how to use TEDIT, refer to the PS Text Edit and PS Text Format User’s Guide and the PS
Text Edit Reference Manual.
Creating and Modifying an
NCL Procedure
NCL procedures reside as disk files. They are created and modified with a text editor.
Your NonStop NET/MASTER Management Services (MS) system provides access to a
text editor, PS Text Edit (TEDIT), through Edit Services for you to create and modify
NCL procedures. You can select Edit Services from the NonStop NET/MASTER MS
primary menu or by entering the EDIT command from the Operator Control Services
(OCS) command input line.
The name of an NCL source file name can be from one through eight characters long.
It must represent a legal Guardian file name.
Caution You should avoid giving an NCL procedure that you create a name that begins with the letter Z. This
letter is used as the initial character of NCL procedures distributed with NonStop NET/MASTER MS.
Deleting an NCL Procedure You can delete an NCL procedure from Edit Services by following these steps:
1. Move the cursor before the name of the NCL procedure you want to delete.
2. Type the letter D before the name of the NCL procedure.
3. Press the ENTER key.