NET/MASTER Network Control Language (NCL) Programmer's Guide
The Structure of an NCL Procedure
Initial NCL Procedure Development
106160 Tandem Computers Incorporated 4–9
The example shows:
How you can target the same statement using different labels. task2: and task3:
are different labels that target the same subroutine.
How you can dynamically generate the label which you want to target. The
example uses a DO loop and the (implicit) string operator (||) to do this.
Where you can position labels. task1:, task2:, and task3: are on different lines.
task4:, task5:, and task6: are on the same line.
The following screen shows the results of executing the procedure:
(09:56) --------------------- OPERATOR CONTROL SERVICES ----------------------
START ZEX0401N
Initial value of &SYS.RETCODE is 0
Performs task 1
Loop 1 &SYS.RETCODE is 1
Performs task 2
Loop 2 &SYS.RETCODE is 2
Performs task 3
Loop 3 &SYS.RETCODE is 3
Performs task 4
Loop 4 &SYS.RETCODE is 4
Performs task 5
Loop 5 &SYS.RETCODE is 5
Final value of &SYS.RETCODE is 5
NNM1005 START ZEX0401N PROCESSING COMPLETE. NCLID 000013
_____________________________________________________________________________
---------- ------------------ NonStop NET/MASTER D30 ---------------- --------
M=>