EXPDT — Specify an Expiration Date for a Data Set
Use this parameter to assign an expiration date to a data set. MVS will not allow the data set to be deleted or written over before this date.
Rules
Optional or Required: Optional
Also Requires: The LABEL parameter if the data set is new
Section: TO
DAP: SEQ, PDS
Format
Usage Notes
- If you want to protect a data set from being overwritten or deleted for a certain number of days, you can use the RETPD parameter.
- If you code the EXPDT parameter in the FROM section, BDT will accept the parameter but will not use it.
- For more information on the use of the EXPDT parameter, see the LABEL parameter in the JCL manual that is appropriate for your installation.
Example
Copy the data set MYDSN to the data set THATDSN and assign an expiration
date of June 13, 1987 to THATDSN. Use the TSO prefix (BDT).
BDT Q FROM DATASET(MYDSN) LOCATION(MYNODE) DAP(SEQ)
TO DATASET(THATDSN) LOCATION(THATNODE) EXPDT(87164)