Finding the date of compilation
You can use the WHEN-COMPILED
intrinsic function
to determine when a
program was compiled.
The 21-character result indicates the
four-digit year, month, day, and time (in hours, minutes, seconds,
and hundredths of seconds) of compilation, and the
difference
in hours and minutes from Greenwich mean time.
About this task
The first 16 positions are in the following format:
YYYYMMDDhhmmsshh
You can instead use the WHEN-COMPILED
special register to determine the date and
time of compilation in the following format:
MM/DD/YYhh.mm.ss
The WHEN-COMPILED
special register supports only
a two-digit
year, and does not carry fractions of a second.
You can use this special register only as the sending field
in a MOVE
statement.