Previous Topic: Optional Statement: Cluster NamesNext Topic: MOVE JCL Examples


MOVE Examples

The following example shows control statements for a MOVE of a single VSAM cluster. In this example, MOVE replaces the EXPORT or RESTORE command. The CLUSTER and CL= parameters are standard and perform the same function as if used with EXPORT or RESTORE. The output parameter provides the volume on which the new data set will reside. A single VSAM cluster (HILVLNOD.FAVR.VSAM1), and all related components will be restored to the new volume.

//SYSIN     DD *
MOVE
CLUSTER
CL=HILVLNOD.FAVR.VSAM1
OUTPUT
CLUSTER
 CL= HILVLNOD.FAVR.VSAM1               *AMS     -
 CLUSTER(NAME (HILVLNOD.FAVR.VSAM1))  -
            VOLUMES(PACK_1)
AIX=+         *AMS        - -> Generic name applicable to all alternate indexes.
AIX (VOL (newvol))      - -> New volume serial number.
PATH=+                       - -> Generic name applicable to all paths.

The following example shows control statements for a MOVE using generic VSAM cluster selection. The control statements move all VSAM data sets in the catalog to a new volume.

//SYSIN     DD *
MOVE
    CLUSTER
    CL=+
OUTPUT
    CLUSTER
    CL=+      *AMS      ----> Generic name applicable to all clusters.
    CL (VOL (newvol))  - -> New volume serial number.
AIX=+         *AMS        - -> Generic name applicable to all alternate indexes.
AIX (VOL (newvol))      - -> New volume serial number.
PATH=+                      - -> Generic name applicable to all paths.

The following example shows control statements to MOVE all VSAM clusters in a catalog using generic high-level node selection. The control statements move all VSAM data sets in the catalog (matching the first data set node) to the new volume.

//SYSIN     DD *
MOVE
    CLUSTER
    CL=+
OUTPUT
    CLUSTER
    CL=+      *AMS      ----> Generic name applicable to all clusters.
    CL (VOL (newvol))  - -> New volume serial number.
AIX=+         *AMS        - -> Generic name applicable to all alternate indexes.
AIX (VOL (newvol))      - -> New volume serial number.
PATH=+                      - -> Generic name applicable to all paths.

Note: For other EXPORT examples, see the sections EXPORT JCL and EXPORT samples in the chapter, "EXPORT."