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.

REPRO//SYSIN DD *LISTCAT NAMES CAT(COPYUCAT)/*//STEP4 EXEC PGM=IDCAMS//SYSPRINT DD SYSOUT=A//SYSIN DD *DEFINE ALIAS -(NAME(MYCAT) -RELATE(COPYUCAT) )/*STEP 1A user catalog, COPYUCAT, is defined on volume 338000 using the DEFINEUSERCATALOG command. Its parameters are:vvvvNAME specifies the name of the new catalog, COPYUCAT.ICFCATALOG specifies the catalog <strong>for</strong>mat of COPYUCAT.FOR specifies that the catalog is to be retained <strong>for</strong> 365 days.CYLINDERS specifies that the catalog itself is initially to occupy 20 cylinders.When the catalog’s data component is extended, it is to be extended inincrements of 10 cylinders.v VOLUME specifies that the catalog is to reside on volume 338000.STEP 2The REPRO NOMERGECAT command copies the contents of MYCAT intoCOPYUCAT. <strong>Access</strong> method services treats each catalog as a key-sequenced dataset and copies each record. The first three records of MYCAT, which describeMYCAT as an integrated catalog facility catalog, are not copied into COPYUCAT.Entries from MYCAT are written into COPYUCAT beginning with record 4 (that is,after the three self-describing records of COPYUCAT). The REPRO command’sparameters are:vvINDATASET identifies the source data set, MYCAT. MYCAT is cataloged in themaster catalog.OUTDATASET identifies the receiving data set, COPYUCAT. COPYUCAT iscataloged in the master catalog.The EXPORT command removes MYCAT’s user catalog connector entry from themaster catalog. MYCAT’s cataloged objects now are not available to the system.(STEP4 builds an alias entry that relates MYCAT to COPYUCAT, making thecataloged objects available to the system again.)STEP 3The LISTCAT command lists the name of each entry in the new catalog,COPYUCAT. The STEPCAT DD statement identifies the catalog to be listed.LISTCAT cannot run in a job step where the catalog is empty when it is opened.To ensure that the LISTCAT correctly reflects the contents of the catalog, theLISTCAT was run as a separate job step.STEP 4<strong>Access</strong> method services builds an alias entry that relates MYCAT entries toCOPYUCAT.Copy a DBCS Data Set: Example 6In this example, the REPRO command is used with the DBCS and INSERTSHIFTparameters. The REPRO command copies the input data set to the output data setinserting SO and SI characters into each logical record of the output data set. It is322 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!