Determining when an object was last saved

If a library contains an object, you can use the Display Object Description (DSPOBJD) command to find out when the system saved the object.

If the QSYS library contains an object, you can use the DSPOBJD command to display the appropriate data area that is shown in Data areas that contain save history.

You can also use the DSPOBJD command to obtain the save history for document library objects (DLO) in libraries. Use the Display Document Library Object Name (DSPDLONAM) command to find the system object name and the ASP ID of the DLO. On the DSPOBJD command, specify the system object name on the OBJ parameter. In the library name field, specify QDOCxxxx where xxxx is the ASP ID. For example, for auxiliary storage pool (ASP) 2 the library name is QDOC0002.
Note: For ASP 1, the system ASP, the library name is QDOC, not QDOC0001.
For objects that you store in directories, you can use the output from the SAV command to maintain save history information. To use the output, you must elect to keep the save history information when you issue the SAV command. To keep the save history information, specify either *PRINT or a stream file or user space path name on the OUTPUT parameter of the SAV command.
Note: The output from the SAV command does not store the last saved data for objects in directories. See Save changed objects in directories for instructions to save only changed objects.

The following commands do not update the save history information for the individual objects that the system saves:

  • Save System (SAVSYS)
  • Save Security (SAVSECDTA)
  • Save Configuration (SAVCFG)
  • Save Save File Data (SAVSAVFDTA)
  • Save System Information (SAVSYSINF)

For some save operations, the system updates history information in a data area. In some cases, the system updates the data area instead of updating the individual objects. In other cases, the system updates the data area in addition to the individual objects.

When you install the operating system, the system will update the data areas. However, the data areas will appear as if you used RSTOBJ to restore them. The system does not support the QSAVDLOALL data area.

The QSRSAV21 data area in library QUSRSYS contains information about the last five most recent GO SAVE Option 21 (Save Entire System) operations. The information includes the starting date and time of each major step in the save operation, the step identifier, and the device used. The ending date and time of the save operation is identified with asterisks. You can use this information to help you plan how much time to estimate for your next GO SAVE Option 21 operation.

The following table shows these commands and the associated data areas:

Table 1. Data areas that contain save history
Command Associated Data Area Individual Objects Updated?
SAVCFG QSAVCFG No
SAVLIB *ALLUSR QSAVALLUSR Yes1
SAVLIB *IBM QSAVIBM Yes1
SAVLIB *NONSYS QSAVLIBALL Yes1
SAVSECDTA QSAVUSRPRF No
SAVSTG QSAVSTG No
SAVSYS QSAVSYS, QSAVUSRPRF, QSAVCFG No
SAVSYSINF QSYSINF No
GO SAVE Option 21 QSRSAV21 No
1
If you specify UPDHST(*NO), the system does not update the Date last saved field in either the object or the data area.

The system uses the save history information when you save objects that have changed since the last save operation.