Import a Cluster to a Volume Other Than One on Which It Was Originally Defined: Example 5
In this example, a key-sequenced cluster, MPS.IMPORT.CLUSTER, is
imported from a portable file, CLUSBACK. The cluster is imported to
a volume other than the 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:
- PORTDS DD describes the portable data set, CLUSBACK.
The IMPORT command's parameters are:
- INFILE points to the PORTDS DD statement.
- OUTDATASET gives the name of the data set being imported.
- OBJECTS changes some of the attributes for the object being imported:
- MPS.IMPORT.CLUSTER identifies the key-sequenced cluster.
- VOLUMES identifies the new volume on which the cluster is to reside.
- CATALOG identifies the catalog, ICFUCAT1, to contain the cluster's catalog entry.