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

COMPILETIME

COMPILETIME returns a CHARACTER string of length 18 containing the date and the time of compilation.

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

The format of the string returned by COMPILETIME is:

DD
Day of the month
.
Period
MMM
Month in the form JAN, FEB, MAR, etc.
.
Period
YY
Year
b
Blank
HH
Hour
.
Period
MM
Minute
.
Period
SS
Second

A leading zero in the day of the month field is replaced by a blank; no other leading zeros are suppressed.

If no timing facility is available, the last 8 characters of the returned string are set to 00.00.00.

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

%DECLARE COMP_TIME CHAR;
%COMP_TIME=QUOTE(COMPILETIME);
PUT EDIT (COMP_TIME) (A);

Terms of use | Feedback

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