NET/MASTER Network Control Language (NCL) Reference Manual

DATE
Built-in Functions
106126 Tandem Computers Incorporated 4–37
Considerations
The &SYS.DATE.
n
system variable, where
n
can be 1 through 11, can provide
most of the formats of the DATE built-in function.
See also DATECONV and TIME. The DATECONV built-in function changes one
date format to a different date format. The TIME built-in function returns the
current time in one of several formats.
See also the &SYS.DATE.
n
and &SYS.DATE.DAY system variables in Section 5,
“System Variables.” &SYS.DATE.
n
, for which
n
ranges from 1 through 11, gives
some of the formats of the DATE built-in function. &SYS.DATE.DAY holds the
current day of the week.
Example
In the following example,
format
is assigned to the variable &A and given the value
2. The DATE built-in function is assigned to the variable &RESULT, which is then
displayed:
SAY_IT: PROCEDURE
&A = 2
&RESULT = DATE(&A)
SAY "TODAY’S DATE IS " &RESULT
END SAY_IT