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 a Cluster Utilizing SMS Keywords: Example 1In this example, the IMPORT command is used with the SMS keywordSTORAGECLASS to import an entry-sequenced cluster, HRB.EXAMPLE.ESDS1,from a portable file, TAPE1. The cluster and data components are renamed. Theclusters storage class is derived by the storage class selection routines using thespecified value as input. If the storage class selection routine assigns a storage classname, the management class is derived by the management class selection routinesusing the value in the portable data set as input.//IMPORT JOB ...//STEP1 EXEC PGM=IDCAMS//SYSPRINT DD SYSOUT=A//SOURCE DD DSN=TAPE1,UNIT=(TAPE,,DEFER),DISP=OLD,// VOL=SER=022585,LABEL=(1,SL)//SYSIN DD *IMPORT -INFILE(SOURCE) -OUTDATASET(K83.EXAMPLE.SMS.ESDS1) -OBJECTS( -(HRB.EXAMPLE.ESDS1 -NEWNAME(K83.EXAMPLE.SMS.ESDS1) -STORAGECLASS(FAST)) -(HRB.EXAMPLE.ESDS1.DATA -NEWNAME(K83.EXAMPLE.SMS.ESDS1.DATA))) -/*Requirement: The ALIAS entries <strong>for</strong> HRB and K83 must point to the same usercatalog.Job control statement:vSOURCE DD describes the portable file, TAPE1, which resides on a magnetictape file that are not mounted by the operator until access method servicesopens TAPE1 <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:v INFILE points to the SOURCE DD statement.vvOUTDATASET gives the name of the renamed cluster. In this example, the dataset either might not exist or, if it does exist, it must not be empty becauseINTOEMPTY is not specified.OBJECTS changes some of the attributes <strong>for</strong> the object being imported:– HRB.EXAMPLE.ESDS1 identifies the entry-sequenced cluster as it is currentlynamed on TAPE1.– NEWNAME specifies that the cluster’s name is to be changed toK83.EXAMPLE.SMS.ESDS1.IMPORT– STORAGECLASS specifies that the data set requires the storage class, FAST. Ifthe data set K83.EXAMPLE.SMS.ESDS1 existed at the time of the import andwas not empty, it would be deleted and redefined. If the data set is redefined,the storage class used <strong>for</strong> redefinition is derived by the storage class selectionroutines using FAST as input. The management class used <strong>for</strong> redefinition isderived by the management class selection routines using the managementclass in effect when the object was exported.– HRB.EXAMPLE.ESDS1.DATA identifies the data component as it is currentlynamed.– NEWNAME specifies that the data component’s name it to be changed toK83.EXAMPLE.SMS.ESDS1.DATA.Chapter 25. IMPORT 267

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

Saved successfully!

Ooh no, something went wrong!