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.

IMPORT/*NEWNAME(BCN.EXAMPLE.ESDS3) -VOLUMES(VSER02))) -CATALOG(VCBUCAT1)Job control language statement:vSOURCE DD describes the portable file, TAPE1, which resides on a magnetictape file, that is not mounted by the operator until access method services opensTAPE1 <strong>for</strong> processing.The IMPORT command moves the contents of TAPE1 into the system. <strong>Access</strong>method services reorganizes the data records. The parameters are:vvvvINFILE points to the SOURCE DD statement.OUTDATASET gives the name of the renamed cluster. Because the high-levelqualifier of the data set name is the name of the alias of the catalog, VCBUCAT1,the data set can be dynamically allocated without specifying a JOBCAT orSTEPCAT DD statement.OBJECTS changes some of the attributes <strong>for</strong> the object being imported:– X98.EXAMPLE.ESDS1 identifies the entry-sequenced cluster as it is currentlynamed on TAPE1.– NEWNAME specifies that the cluster’s name is to be changed toBCN.EXAMPLE.ESDS3.– VOLUMES identifies the new volume on which the cluster is to reside.CATALOG identifies the catalog, VCBUCAT1, to contain the cluster’s catalogentry.Import a Cluster to a Volume Other Than One on Which It WasOriginally Defined: Example 5In this example, a key-sequenced cluster, MPS.IMPORT.CLUSTER, is importedfrom a portable file, CLUSBACK. The cluster is imported to a volume other thanthe one in which it was originally defined.//IMPORT JOB ...//STEP1 EXEC PGM=IDCAMS//SYSPRINT DD SYSOUT=A//PORTDS DD DSNAME=CLUSBACK,UNIT=3390,VOL=SER=339001,DISP=OLD//SYSIN DD *IMPORT -INFILE(PORTDS) -OUTDATASET(MPS.IMPORT.CLUSTER) -OBJECTS((MPS.IMPORT.CLUSTER -VOLUMES(339002))) -CATALOG(ICFUCAT1)/*Job control language statement:vPORTDS DD describes the portable data set, CLUSBACK.The IMPORT command’s parameters are:v INFILE points to the PORTDS DD statement.vvOUTDATASET gives the name of the data set being imported.OBJECTS changes some of the attributes <strong>for</strong> the object being imported:– MPS.IMPORT.CLUSTER identifies the key-sequenced cluster.– VOLUMES identifies the new volume on which the cluster is to reside.270 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!