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

Read syntax diagramSkip visual syntax diagramEXPDT(yyddd)
yyddd
is the expiration date you want to assign to the data set. yy is the year and may be any number from 00 to 99. ddd is the day and may be any number from 001 to 366.

Usage Notes

  1. 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.
  2. If you code the EXPDT parameter in the FROM section, BDT will accept the parameter but will not use it.
  3. 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)