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


Example 1: Importing a distribution zone into a target zone

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

Assume that you have exported a distribution zone named IMPDLB into file IMPFILE, and now you want to use this zone to create a target zone named IMPTGT in an existing data set, SMP.IMPORT.CSI. You need an IMPFILE DD statement to point to the exported file, and an SMPCSI DD statement to point to the CSI data set that contains the global zone. The following SMP/E commands create the new zone:
SET        BDY(GLOBAL)      /* Set to global zone.      */.
UCLIN                       /* Define zone index.       */.
ADD        GZONE            /*                          */
           ZINDEX(          /*                          */
                  (IMPTGT,SMP.IMPORT.CSI,TARGET)    /*  */
                 )          /*                          */
                            /*                          */.
ENDUCL                      /*                          */.
SET        BDY(IMPTGT)      /* Set to new zone.         */.
ZIMP       (IMPDLB)         /* Import DLIB zone IMPDLB  */
           INFILE(IMPFILE)  /* into target zone IMPTGT. */
           INTO(IMPTGT)     /*                          */
           RELATED(IMPDLB1) /* Add related zone.        */.

After the ZONEIMPORT operation, a new global zone ZONEINDEX entry has been created to indicate that zone IMPTGT is in SMP.IMPORT.CSI and has a related zone, IMPDLB1. Note that you changed both the name and type of the zone when you imported it.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014