NET/MASTER Management Services (MS) Operator's Guide

Using System Variables
Automating Operations Tasks With NCL Procedures
106379 Tandem Computers Incorporated 10–3
Restrictions When including a NonStop NET/MASTER MS command in an NCL procedure, you
must enclose the command in quotes if it contains characters that NCL regards as
operator characters or special characters such as the equal sign (=) and parentheses.
To save you from worrying about the distinction, it is best to always enclose NonStop
NET/MASTER MS commands in quotes when issuing them from within an NCL
procedure. Refer to the NonStop NET/MASTER NCL Programmer’s Guide for more
information.
NonStop NET/MASTER MS commands that cannot be entered from an NCL
procedure using either the CMD statement or the INTCMD verb include the following:
!
?
CS-
CS+
FC
HISTORY
PARAM
NonStop NET/MASTER MS commands that can be entered from an NCL procedure
using the CMD statement, but not the INTCMD verb, include the following:
AUTOHOLD
CLEAR
K
NRDRET
ORDER
PAGE
The description of each NonStop NET/MASTER MS command in the NonStop
NET/MASTER MS Command Reference Manual addresses command entry restrictions
and other NCL issues when issuing the command from within an NCL procedure.
Using System
Variables
System variables hold system-maintained values such as the following:
The current time (&SYS.TIME) and date (&SYS.DATE.
nn
)
This example displays the current time and date:
WRITE DATA="The date and time is "&SYS.DATE.2 &SYS.TIME
The current day of the week (&SYS.DATE.DAY)
You might use this system variable to perform a certain function within a
procedure only on a particular day of the week. For instance:
IF &SYS.DATE.DAY EQ SUN THEN
EXEC SUNDAY
ELSE
EXEC WEEKDAY