Save changed objects in directories

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:

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 server 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 server 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 server do not distinguish between save operations, the server archive indicator for those file systems will always match the PC archive indicator. Therefore, changed objects in the file systems accessed through the network server 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 server save history and PC save history:

Related concepts
How the server updates changed object information with the SAVCHGOBJ command
Using the Save (SAV) command