Alter a Data Set Expiration Date: Example 6

In this example, an ALTER command is used to modify the expiration date of data set MOD.ALTER.EXAMPLE with the keyword TO.
//ALTER5   JOB    ...
//STEP1    EXEC PGM=IDCAMS
//SYSPRINT DD   SYSOUT=A
//SYSIN    DD   *
     ALTER -
           MOD.ALTER.EXAMPLE -
           TO(2005123)
/*
The command's parameters are:
  • MOD.ALTER.EXAMPLE is the name of the data set.
  • TO changes the expiration date of the data set by name. The year (2005) is a four-digit number, concatenated with the day (123).