Each source record contains a date field which is automatically
updated by the source entry utility (SEU) if a change occurs to the statement.
This can be used to determine when a statement was last changed.
Most high-level language compilers print these dates on the compiler lists.
The Copy File (CPYF) and Copy Source File (CPYSRCF) commands also print these
dates.
Each source member description contains two date and time fields. The first
date/time field reflects changes to the member any time it is closed after
being updated.
The second date/time field reflects any changes to the member. This
includes all changes caused by SEU, commands (such as CRYF and CPYSRCF), authorization
changes, and changes to the file status. For example, the FRCRATIO parameter
on the Change Physical File (CHGPF) command changes the member status. This
date/time field is used by the Save Changed Objects (SAVCHGOBJ) command to
determine if the member should be saved. Both date/time fields can be displayed
with the Display File Description (DSPFD) command specifying TYPE(*MBR). There
are two changed date/times shown with source members:
- Last source update date/time. This value reflects any
change to the source data records in the member. When a source update occurs,
the Last change date/time value is also updated, although
there might be a 1- or 2-second difference in that date/time value.
- Last change date/time. This value reflects any changes
to the member. This includes all changes caused by SEU, commands (such as
CPYF and CPYSRCF), authorization changes, or changes to file status. For example,
the FRCRATIO parameter on the CHGPF command changes the member status, and
therefore, is reflected in the Last change date/time value.