09.07.2015 Views

z/OS V1R6.0 DFSMS Access Method Services for Catalogs

z/OS V1R6.0 DFSMS Access Method Services for Catalogs

z/OS V1R6.0 DFSMS Access Method Services for Catalogs

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

REPR<strong>OS</strong>TEP2<strong>Access</strong> method services copies some of the records of the key-sequenced data setRPR.MYDATA into an entry-sequenced data set, ENTRY. STEP2’s job controllanguage statements:vvINPUT DD identifies the key-sequenced cluster, RPR.MYDATA, that contains thesource records.OUTPUT DD identifies the entry-sequenced cluster, ENTRY, that the records areto be copied into.STEP2’s REPRO command copies records from the source data set, RPR.MYDATA,to the target data set, ENTRY. Only those records with key values from DEAN to,and including, JOHNSON are copied.vvvThe parameters are:INFILE points to the INPUT DD statement, which identifies the sourcekey-sequenced data set.OUTFILE points to the OUTPUT DD statement, which identifies theentry-sequenced data set into which the source records are to be copied.FROMKEY and TOKEY specify the lower and upper key boundaries.If ENTRY already contains records, VSAM merges the copied records withENTRY’s records. A subsequent job step could resume copying the records intoENTRY, beginning with the records with key greater than JOHNSON. If yousubsequently copied records with key values less than DEAN into ENTRY, VSAMmerges them with ENTRY’s records.Merge an Integrated Catalog Facility User Catalog intoAnother Integrated Catalog Facility User Catalog: Example 3This example shows how integrated catalog facility user catalog entries are mergedinto another integrated catalog facility user catalog. This function effectivelycombines 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 nolonger accessible in the source catalog.vvvvINDATASET identifies the source catalog, USERCAT4.OUTDATASET identifies the target catalog, USERCAT5.MERGECAT specifies that entries from the source catalog are to be merged withentries of the target catalog.FILE specifies the ddname of a DD statement that describes all the volumes thatcontain VVDS entries <strong>for</strong> all the entries that are being merged.320 z/<strong>OS</strong> <strong>V1R6.0</strong> <strong>DFSMS</strong> <strong>Access</strong> <strong>Method</strong> <strong>Services</strong> <strong>for</strong> <strong>Catalogs</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!