Merge an Integrated Catalog Facility User Catalog into Another Integrated Catalog Facility User Catalog: Example 2
This example shows how integrated catalog facility user catalog
entries are merged into another integrated catalog facility user catalog. This
function effectively combines entries from two catalogs into one catalog.
//MERGE6 JOB ...
//STEP1 EXEC PGM=IDCAMS
//DD1 DD VOL=SER=VSER01,UNIT=DISK,DISP=OLD
// DD VOL=SER=VSER02,UNIT=DISK,DISP=OLD
// DD VOL=SER=VSER03,UNIT=DISK,DISP=OLD
//SYSPRINT DD SYSOUT=A
//SYSIN DD *
REPRO -
INDATASET(USERCAT4) -
OUTDATASET(USERCAT5) -
MERGECAT -
FILE(DD1)
/*
The REPRO command moves all the entries from the source catalog,
USERCAT4, and merges them into the target catalog, USERCAT5. All the
entries moved are no longer accessible in the source catalog.
- INDATASET identifies the source catalog, USERCAT4.
- OUTDATASET identifies the target catalog, USERCAT5.
- MERGECAT specifies that entries from the source catalog are to be merged with entries of the target catalog.
- FILE specifies the ddname of a DD statement that describes all the volumes that contain VVDS entries for all the entries that are being merged.