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
| Parameter | Description | Format / Allowed Values |
|---|---|---|
| Date format |
(Optional) Date format for the retrieved date. For more information, see Date, Time and Period Formats in Scripts. |
Script literal or script variable Default: YYMMDD |
Examples
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: