Migrated and Backup Data Set Data Collection: Example 3
This example shows data collection for all migrated and backup
data sets that reside on the system.
//COLLECT3 JOB ...
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=A
//MCDS DD DSN=HSM.MCDS,DISP=SHR
//BCDS DD DSN=HSM.BCDS,DISP=SHR
//SYSIN DD *
DCOLLECT -
OUTDATASET(USER.DCOLLECT.OUTPUT) -
MIGRATEDATA -
BACKUPDATA
/*
Job control language statements:
- MCDS identifies the Migration Control Data Set. This data set must be identified by the ddname MCDS. When using a multicluster CDS, each cluster must be identified on a separate DD statement. The ddnames are MCDS, MCDS2, MCDS3, and MCDS4.
- BCDS identifies the Backup Control Data Set. This data set must be identified by the ddname BCDS. When using a multicluster CDS, each cluster must be identified on a separate DD statement. The ddnames are BCDS, BCDS2, BCDS3, and BCDS4.
The DCOLLECT command defines which data is to be collected.
The parameters are:
- OUTDATASET names the output data set USER.DCOLLECT.OUTPUT. Which must exist before the job is run. All new data records are appended to the end of the data set.
- MIGRATEDATA creates data records for all migrated data sets that reside on this system.
- BACKUPDATA creates data records for all backed up data sets on this system.