DT_CURRENT_DATE: Returning the Current Date

How to:

The DT_CURRENT_DATE function returns the current date-time provided by the running operating environment in date-time format. The time portion of the date-time is set to zero.

Syntax: How to Return the Current Date

DT_CURRENT_DATE()

Example: Returning the Current Date

The following request returns the current date.

DEFINE FILE WF_RETAIL_LITE
CURRDATE/YYMD WITH COUNTRY_NAME = DT_CURRENT_DATE();
END
TABLE FILE WF_RETAIL_LITE
SUM CURRDATE
ON TABLE SET PAGE NOPAGE
END

The output is shown in the following image.