Limit processing of generation data groups

Limit processing is done whenever a new generation is added to a generation data group, typically as the result of an OPEN statement. You can also do limit processing manually by using the -C (cleanup) option of the gdgmgr utility.

If the empty option is in effect for a group, limit processing removes all expired files from the group. If the empty option is not in effect for a group, expired files are removed from the group, after any addition, in least-current to most-current generation order until the group is at its limit.

A generation file is considered expired if the difference between the current system date and the file creation date exceeds the number of days specified by the days property of the group.

Generation files that are removed from a group are also deleted from the file system if the scratch option is in effect for the group.

For groups of Db2® and SFS files, the -D days option is not supported, and the days property of the group is forced to zero. Thus the age of these files is not a factor during limit processing.

Example: limit processing

Related concepts  
Generation data groups

Related references
File specification