Previous Topic: Example 8—Recover Selected Data Sets to a Specified VolumeNext Topic: Example 10—Recover Data Sets with Specified Criteria


Example 9—Recover Selected Data Sets Archived Yesterday

Recover those data sets that were archived yesterday, excluding those data sets in FMSEXCLD. Any data set that happens to already exist will be left unaltered because sysparms PREALLOC and VSPREDEF both default to 'N'.

//jobname JOB (acct,info),etc.
//         EXEC FMS
//SYSIN     DD  *
SCAN DSNINDEX
SELECT DSN=/,CRI=(ARCDT,EQ,TODAY-1,AND,ARCTYPE,EQ,ARCHIVE)
EXCLUDE TABLE=FMSEXCLD
RECOVER