Import a Cluster Utilizing SMS Keywords: Example 1

In this example, the IMPORT command is used with the SMS keyword STORAGECLASS to import an entry-sequenced cluster, HRB.EXAMPLE.ESDS1, from a portable file, TAPE1. The cluster and data components are renamed. The clusters storage class is derived by the storage class selection routines using the specified value as input. If the storage class selection routine assigns a storage class name, the management class is derived by the management class selection routines using 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 for HRB and K83 must point to the same user catalog.

Job control statement:
  • SOURCE DD describes the portable file, TAPE1, which resides on a magnetic tape file that are not mounted by the operator until access method services opens TAPE1 for processing.
The IMPORT command moves the contents of TAPE1 into the system. Access method services reorganizes the data records. The parameters are:
  • INFILE points to the SOURCE DD statement.
  • OUTDATASET gives the name of the renamed cluster. In this example, the data set either might not exist or, if it does exist, it must not be empty because INTOEMPTY is not specified.
  • OBJECTS changes some of the attributes for the object being imported:
    • HRB.EXAMPLE.ESDS1 identifies the entry-sequenced cluster as it is currently named on TAPE1.
    • NEWNAME specifies that the cluster's name is to be changed to K83.EXAMPLE.SMS.ESDS1.
    • STORAGECLASS specifies that the data set requires the storage class, FAST. If the data set K83.EXAMPLE.SMS.ESDS1 existed at the time of the import and was not empty, it would be deleted and redefined. If the data set is redefined, the storage class used for redefinition is derived by the storage class selection routines using FAST as input. The management class used for redefinition is derived by the management class selection routines using the management class in effect when the object was exported.
    • HRB.EXAMPLE.ESDS1.DATA identifies the data component as it is currently named.
    • NEWNAME specifies that the data component's name it to be changed to K83.EXAMPLE.SMS.ESDS1.DATA.