Syntax
MOVEDATE variable [ FORMAT (CCYYMMDD |
DDMMCCYY | DDMMYY | MMDDCCYY | MMDDYY | YYMMDD) ]
Parameters
MoveDate can be abbreviated as MD.
variable
A number-primitive variable to receive the current date. The variable should be 6 or 8 characters long, without decimals.
FORMAT
FORMAT can be abbreviated as FMT. Specifies the format of the value, where the specifier is one of:
CCYYMMDD
DDMMCCYY
DDMMYY
MMDDCCYY
MMDDYY
YYMMDD (This is the default, if this command option is not specified.)
Where CC formats the 2-digit century prefix, YY formats the 2-digit year, MM formats the month, and DD formats the day.
The Glb.DC_-prefixed built-in segment attributes are not affected by this command option.
Description
The MoveDate logic command obtains the current date and returns the result as a numeric value, in a specifiable format.
If the Format command option is not specified, the default format is YYMMDD, even if length of the receiving variable is 8.
The date at which the ispec or report was started (or restarted after a Sleep or CriticalPoint logic command) is available as the value of the Glb.Date built-in segment attribute.