COMPILEDATE

COMPILEDATE returns a CHARACTER string of length 17 containing the date and the time of the compilation.

Read syntax diagramSkip visual syntax diagramCOMPILEDATE

The format of the string returned by COMPILEDATE is as follows:

yyyy
current year
mm
current month
dd
current day
hh
current hour
mm
current minute
ss
current second
ttt
current millisecond

The time zone and accuracy are system dependent.

Example

The following example shows how to print the string returned by COMPILEDATE when your program is run:

%DECLARE COMP_DATE CHAR;
%COMP_DATE=QUOTE(COMPILEDATE);
PUT EDIT (COMP_DATE) (A);