Previous Topic: EXPIRE Command Example 1Next Topic: EXPIRE Command Example 3


EXPIRE Command Example 2

Expire (in simulate mode) all data sets whose expiration dates are less than today's date and have not been used in one year, which reside on the DMSK01 volume.

//jobname JOB (acct,info),etc.
//STEP EXEC DMS
SET MODE=SIMULATE
SCAN REALVOLS
   SELECT VOL=DMSK01,CRITERIA=(EXPDT,LT,TODAY,AND,USEDT,LE,TODAY-365)
     EXPIRE