Use the RETPD statement to specify the number of days a newly allocated data set should be retained. You can also use the SIte and LOCSIte subcommands to set this keyword.
.-RETPD-----------. >>-+-----------------+----------------------------------------->< '-RETPD--+------+-' '-days-'
If you specify 0 for days, newly allocated data sets are assigned a retention period of 0 days. This means that the retention period of the data set expires on the same day that the data set is created.
If you do not specify the RETPD statement or if you specify the RETPD statement with no value, no retention period is assigned to newly allocated data sets.
However, you should understand that the retention period attribute can be obtained from an SMS data class (DATACLASS), an SMS management class (MGMTCLASS), a model data set (DCBDSN), or from the RETPD statement.
If you specify RETPD with a value, this value overrides the retention period settings from any specified model data set (DCBDSN) or SMS data class (DATACLASS) and might override the value of a specified SMS management class (MGMTCLASS).
If you specify RETPD with no value, and you specified both an SMS data class and a model data set, then the retention period is obtained form the model data set.
If the SMS data class or DCBDSN model data set have a retention period, this retention period can be overridden to a new retention period. The retention period cannot be overridden to have no assigned retention period.
However, regardless of where the retention period value is obtained, when attempting to override the value set in the management class, the actual resulting retention period setting depends on the retention period limit defined in the management class. A management class is defined with a retention limit value as well as a retention period. If you attempt to override the management class's retention period, the override value must be within the retention period limit defined in the management class. Otherwise, the retention period used is the management class's retention limit value.
RETPD 30
RETPD 0