The TIME operation accesses the system time of day and/or the system
date at any time during program processing. The system time is based
on the 24-hour clock.
The Result field can specify one of the following into which the
time of day or the time of day and the system date are written:
Result Field
Value Returned
Format
6-digit Numeric
Time
hhmmss
12-digit Numeric
Time and Date
hhmmssDDDDDD
14-digit Numeric
Time and Date
hhmmssDDDDDDDD
Time
Time
Format of Result
Date
Date
Format of Result
Timestamp
Timestamp
*ISO
If the Result field is a numeric field, to access the time of day
only, specify the result field as a 6-digit numeric field. To access
both the time of day and the system date, specify the result field
as a 12- (2-digit year portion) or 14-digit (4-digit year portion)
numeric field. The time of day is always placed in the first six positions
of the result field in the following format:
hhmmss (hh=hours, mm=minutes, and ss=seconds)
If the Result field is a numeric field, then if the system date
is included, it is placed in positions 7 through 12 or 7 through
14 of the result field. The date format depends on the date format
job attribute DATFMT and can be mmddyy, ddmmyy, yymmdd, or Julian.
The Julian format for 2-digit year portion contains the year in positions
7 and 8, the day (1 through 366, right-adjusted, with zeros in the
unused high-order positions) in positions 9 through 11, and 0 in position
12. For 4-digit year portion, it contains the year in positions 7
through 10, the day (1 through 366, right-adjusted, with zeros in
the unused high-order positions) in positions 11 through 13, and 0
in position 14.
If the Result field is a Timestamp field, the last 3 digits in
the microseconds part is always 000.
Note: The special fields
UDATE and *DATE contain the job date. These values are not updated
when midnight is passed, or when the job date is changed during the
running of the program.