NET/MASTER Network Control Language (NCL) Reference Manual
&SYS.NCL.RESTART
System Variables
106126 Tandem Computers Incorporated 5–61
&SYS.NCL.RESTART The &SYS.NCL.RESTART system variable contains the number of restarts for a
persistent NCL process.
&SYS.NCL.RESTART
Considerations
&SYS.NCL.RESTART is initially set to 0 (zero) when a persistent NCL process is
started, and is incremented by 1 each time the NCL procedure restarts.
If the NCL procedure is not started as persistent, the value of
&SYS.NCL.RESTART is, and remains, null.
See the START verb in Section 3, “Verbs.” This verb defines how you can start a
persistent NCL procedure.
Example
The following example shows a procedure called EX2 that issues a START verb, using
the RESTART operand, to start an NCL process called EX3. This process displays the
&SYS.NCL.RESTART system variable as its first executable statement. When the
process restarts as a result of the process in which it is running being stopped, the
count increments by 1.
EX2: PROCEDURE
START EX3 ENV=BMON RESTART=YES
END RETCODE
EX3:PROCEDURE
SAY "RESTART COUNT IS " &SYS.NCL.RESTART
/* more NCL CODE */
END EX3
The foregoing NCL procedure, EX3, does not restart if it terminates before the restart
takes place.