SETDAY Verb
Syntax
SETDAY string
Description
The SETDAY verb sets the value returned by the DAY
variable, evaluates the string,
and saves the result where it can be accessed by the DAY variable. SETDAY
is intended for use as a date mechanism, but any 8-byte string is legal.
No checking is done for a valid date. All other string lengths return
an !ERROR=46.
Because any 8-byte string is legal in SETDAY, the DAY variable does not
necessarily return the real system date kept by some operating systems.
The most common format is "MM/DD/YY". PRO/5 does not attempt
to alter the date once SETDAY has been used until PRO/5 is closed and
reopened. For example, PRO/5 does not change the date at midnight. See
the DAY variable for additional
information.
Examples
>SETDAY "09/15/96"