JCL DD RETPD

JCL – DD RECORG JCL – DD SPACE

Advertisements


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:

RETPD=nnnnn

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:

//DD01  DD  DSNAME=MTH.DATA,DISP=(NEW,KEEP),RETPD=150 

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


Example 2:

//DD02  DD  DSNAME=MTH.DATA,DATACLAS=DCLAS07,DISP=(NEW,KEEP),
//          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.


JCL – DD RECORG JCL – DD SPACE

Advertisements