SYS_LDATE
Use the SYS_LDATE script function to retrieve the logical date that is specified for the execution of a task.
Tip: If you need to retrieve the real date, use SYS_DATE.
Important! When you use SYS_LDATE in Event objects, the retrieved date is the current date, not the logical date. For more information, see Events (EVNT).
Syntax
SYS_LDATE ([Date format])
Parameters
-
SYS_LDATE
Returns the logical date -
Date format
(Optional) Date format for the retrieved date
For more information, see Date, Time and Period Formats in Scripts.
Format: script literal or script variable
Default: YYMMDD
Example
A Job contains the following script, which retrieves the logical date that is specified for the Job. The date is retrieved in MM/DD/YYYY format.
:SET &LDATE# = SYS_LDATE("MM/DD/YYYY")
See also: