Specifying expiration attributes

The expiration attributes, EXPIRE AFTER DAYS NON-USAGE and EXPIRE AFTER DATE/DAYS, govern how long a data set associated with the management class is kept if no expiration date is listed in the data set VTOC entry or if the VTOC entry contains an INVALID EXPIRATION DATE. The expiration date is in the data set VTOC entry if the RETENTION LIMIT attribute does not specify a value of zero to disallow the use of explicit expiration dates and the expiration date is explicitly specified by the user or data class.

DFSMShsm considers explicit expiration dates to be INVALID when:

EXPIRE AFTER DAYS NON-USAGE specifies how many days must elapse from the last access of the data set until the data set becomes eligible for expiration. EXPIRE AFTER DATE/DAYS specifies an absolute date or period after the data set has been created for a data set to become eligible for expiration. The default for both attributes is NOLIMIT.

Both attributes can be used together. When both attributes have a value other than NOLIMIT, both attributes must be satisfied before the data set is expired. When both attributes are NOLIMIT, the data set does not expire. When one of the attributes is NOLIMIT, that attribute is not used to expire the data set; the expiration of the data set is based on the attribute that is not NOLIMIT.

It is possible to have a management class request both automatic backup processing—by using the AUTO BACKUP setting of Y— and expiration processing—by using the EXPIRE AFTER.... as numeric values. In this case, DFSMShsm determines if a backup copy has been made before expiring the data set. The data set will be deleted when any of the following conditions are true:
Rule: ADMIN OR USER COMMAND BACKUP must not be NONE and AUTO BACKUP must be Y to request automatic backup.