Summary -

In this topic, we described about the DD RETPD with detailed example.

RETPD parameter used to specify the retention period for the new dataset. This helps to reduce the risk of deleting the dataset accidentally. The dataset can be deleted or written over after the retention period is completed. RETPD is optional parameters. Do not specify the RETPD parameter for temporary datasets.

Code RETPD parameter only when to specify record retention period of the new dataset or to override the retention period specified in Data class. RETPD parameter achieves the same result as EXPDT parameter.

Syntax -


nnnnn Specifies the retention period in days for the new dataset.
The nnnnn is 1 through 5 decimal digits.
The nnnnn value is from 0 through 93000.
The calculated expiration date uses 365-day years and 366-day leap years.
If the produced expiration date exceeds December 31, 2155, then the expiration date will be set to December 31, 2155.

Example 1:


In the above example, the data set is not eligible for being deleted or written over for 150 days.

Example 2:

// RETPD=625

In the above example, the retention period of 625 days overrides the retention period defined in the data class for the data set.