RETAINDAYS: Specifying the number of days to retain a backup copy

Explanation: RETAINDAYS is an optional parameter specifying a number of days to retain a specific backup copy of a data set. If you specify RETAINDAYS, number of retain days is a required parameter that specifies a minimum number of days (0–50000) that DFSMShsm retains the backup copy. If you specify 99999, the data set backup version never expires. Any value greater than 50000 (and other than 99999) causes a failure with an ARC1605I error message. A retain days value of 0 indicates that:

Restriction: RETAINDAYS applies only to cataloged data sets.

Defaults: None.

Related reading: For more information about the RETAINDAYS processing, see Specifying the number of days to retain a backup copy of a data set.