Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

COMPILEDATE

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

Read syntax diagramSkip visual syntax diagram>>-COMPILEDATE-------------------------------------------------><
 

The format of the string returned by COMPILEDATE is:

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.

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);

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)