Saving changed objects in directories

This information describes how to use the CHGPERIOD parameter of the SAV command to save objects that have changed.

You can use the change period (CHGPERIOD) parameter on the Save (SAV) command to save objects that changed since a specified time, objects that last changed during a specific time period, or objects that were changed since they were last saved.

If you specify CHGPERIOD(*LASTSAVE), you get any object that changed since any save operation you performed for that object with UPDHST(*YES) specified. If you use this method several times during a week, the resulting media will look like Table 2.

To perform a save operation that includes all objects that changed since the last complete save of a directory (similar to what is shown in Table 1), do one of the following:

  • Specify a date and time for the CHGPERIOD parameter.
  • Specify UPDHST(*YES) for a complete save operation. Specify UPDHST(*NO) and CHGPERIOD(*LASTSAVE) when you save changed objects.

You can also use the SAV command to save objects that have not changed since a particular time by specifying CHGPERIOD(*ALL *ALL date time). This might be useful to archive old information before you remove it.

The system keeps a record of when it last changed the object. It also records whether it changed the object since the last save or not. The system does not store data for when it last saved the object.

Select option 8 on the Work With Object Links (WRKLNK) display to view the attributes that describe whether an object in a directory changed since you last saved it.
Note: If you use the operating system of a client workstation to save an object, the PC archive indicator will be set to 'No'. Since file systems accessed through the network system do not distinguish between save operations, the system archive indicator for those file systems will always match the PC archive indicator. Therefore, changed objects in the file systems accessed through the network system that have been saved by a client workstation save operation will not be saved by a save operation until they have been changed again.

The UPDHST parameter value controls updating of the system save history and PC save history:

  • *NO - The system does not update the save history. The PC archive attribute and the system archive attribute do not change.
  • *YES - The system updates the save history. For file systems that you access through the network server, the PC archive attribute is set to 'No'. For other file systems, the system archive attribute is set to 'No'.
  • *SYS - The system updates the system save history. The system archive attribute is set to 'No'.
  • *PC - The system updates the PC save history. The PC archive attribute is set to 'No'.