Example 1: Defining a DLIBZONE entry

Assume you are about to add a new function to your system and want to define a separate distribution zone for it named DLIB2. The OPTIONS entry you plan to use is OPTDLIB2, and the SREL for the SYSMOD is Z038. The distribution zone is in data set SMPE.SMPCSI.CSI. After installing the function in the distribution libraries, you plan to do a system generation to build a set of target libraries. The target zone for those libraries is TGT2. The following UCLIN can be used to define the new zone.
SET      BDY(GLOBAL)        /* Set to global zone.      */.
UCLIN                       /* UCLIN for GZONE entry    */.
ADD      GZONE              /* to set up                */
         ZONEINDEX(         /* index for new zone.      */
                   (DLIB2,SMPE.SMPCSI.CSI,DLIB) /*      */
                  )         /*                          */
                            /*                          */.
ENDUCL                      /* End global zone update.  */.
SET      BDY(DLIB2)         /* Now define new zone.     */.
UCLIN                       /* UCLIN to define it.      */.
ADD      DLIBZONE(DLIB2)    /* Identify name.           */
         OPTIONS(OPTDLIB2)  /* OPTIONS entry to use.    */
         SREL(Z038)         /* SREL for MVS.            */
         RELATED(TGT2)      /* For this tgt library.    */
         ZDESC(
               THIS DISTRIBUTION ZONE IS FOR
               SREL Z038
              )             /* Zone description.        */
                            /*                          */.
ENDUCL                      /*                          */.
Note: Even if the OPTIONS entry or TARGETZONE entry has not yet been defined, you can still refer to it in the DLIBZONE entry. However, you must create the entry before you process this distribution zone. For examples of defining OPTIONS entries, see OPTIONS entry (global zone). For examples of defining TARGETZONE entries, see TARGETZONE entry (target zone).