SMP/E for z/OS Commands
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Example 2: Copying a distribution zone to a distribution zone

SMP/E for z/OS Commands
SA23-2275-01

Assume that you have a distribution zone named TSTDLB1 in data set SMP.DLB1.CSI, with a related target zone TSTTGT1. You want to create a copy of TSTDLB1 to do some testing. The new distribution zone will be named TSTDLB2, will have a related target zone of TSTTGT2, and will be processed according to options entry TSTOPT. The following SMP/E commands create the new zone:
SET        BDY(GLOBAL)      /* Set to global zone.      */.
UCLIN                       /* Define zone index.       */.
ADD        GZONE            /*                          */
           ZINDEX(          /*                          */
                  (TSTDLB2,SMP.DLB2.CSI,DLIB)       /*  */
                 )          /*                          */
                            /*                          */.
ENDUCL                      /*                          */.
SET        BDY(TSTDLB2)     /* Set to new zone.         */.
ZONECOPY   (TSTDLB1)        /* Copy DLIB zone TSTDLB1   */
           INTO(TSTDLB2)    /* to DLIB zone TSTDLB2.    */
           OPTIONS(TSTOPT)  /* Add OPTIONS entry        */
           RELATED(TSTTGT2) /* and related zone.        */.
After the preceding SMP/E commands have completed, the global zone ZONEINDEX indicates that zone TSTDLB1 is still in SMP.DLB1.CSI and has not been changed. A new global zone ZONEINDEX subentry has been created to indicate that zone TSTDLB2 is in SMP.DLB2.CSI, with a new related zone TSTTGT2 and options entry TSTOPT.
Note: The two zones must be in different CSI data sets.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014