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


ARCHIVE Command Example 2

Archive for 7 years, allowing auto-restore, non-VSAM data sets and VSAM clusters not used in 28 days, except for SYS data sets and DB2 database components.

//jobname JOB (acct,info),etc.
//STEP EXEC DMS
PASSWORD MASTER=the-CA Disk-master-password
SCAN REALVOLS
SELECT CRI=(USEDT,LE,TODAY-28)                      not used in 28 days
EXCLUDE DSNAMES=SYS/                                leave my SYS/ on disk
ARCHIVE DISP=RECAT,RETPD=2557