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


Example 1: Creating new target zone after system generation

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

After performing a full system generation, you need to create a new target zone describing the new set of target libraries created during the system generation process. The following example illustrates the steps necessary to do this.

The first step is to define the new target zone. Assume the previous target zone was named TGT1, the new target zone is to be named TGT2 (generated from distribution zone DLB1), and the OPTIONS entry to be used is MVSOPT. Both target zones are to exist in SMPE.SMPCSI.CSI. The following SMP/E commands define the new target zone:
SET      BDY(GLOBAL)        /* Set to global.           */.
UCLIN                       /* UCLIN to define new zone.*/.
ADD      GZONE              /*                          */
         ZONEINDEX(         /* Define zone in CSI.      */
                   (TGT2,SMPE.SMPCSI.CSI,TARGET)    /*  */
                  )         /*                          */
                            /* Define new zone.         */.
ENDUCL                      /*                          */.
SET      BDY(TGT2)          /* Set to new zone.         */.
UCLIN                       /* Add definition entry.    */.
ADD      TZONE(TGT2)        /* Define zone.             */
         RELATED(DLB1)      /* Same info as             */
         OPTIONS(MVSOPT)    /* in old zone.             */
         SREL(Z038)         /*                          */.
ENDUCL                      /*                          */.
Now that the new target zone has been defined, you should use the ZONEMERGE command to copy the entries from the old target zone that do not reflect system structure information. This can be done by using the DEFINITION operand of the ZONEMERGE command. The only entries that are copied in this case are the DDDEF entries, and these should not have changed during the system generation process. The following SMP/E commands copy the DDDEF entries:
SET      BDY(TGT2)          /* Set to new zone.         */.
ZONEMERGE(TGT1)             /* Merge from TGT1          */
         INTO(TGT2)         /* into new zone TGT2.      */
         DEFINITION         /* Definition only.         */.
Note: If you have changed the unit or VOLSER of the target volumes, and the DDDEF entries describing those libraries also contains the unit or volume information (that is, the DDDEF entries did not assume that the data sets were cataloged), these entries must be modified with UCLIN to reflect the new data. The following is an example of how to modify the DDDEF entries to change both the unit and volume information (assume old unit and volume were 3330 and TGTVOL and new information is 3380 and TGTPCK):
SET      BDY(TGT2)          /* Set to new target zone.  */.
UCLIN                       /*                          */.
REP      DDDEF(MACLIB)      /* MACLIB changed to        */
         UNIT(3380)         /* unit 3380,               */
         VOLUME(TGTPCK)     /* volume TGTPCK.           */
                            /* dsname not changed.      */.
ENDUCL                      /*                          */.
At this point, you must copy the distribution zone to the new target zone so SMP/E can determine the function and service levels of all of the distribution library elements. This copy can be done as follows:
SET      BDY(TGT2)          /* Set to new target zone.  */.
ZONEMERGE(DLB1)             /* Copy from DLIB           */
         INTO(TGT2)         /* into new target system,  */
         CONTENT            /* but only the element     */
                            /* and SYSMOD entries.      */.
Now that the target zone is defined and primed with the nonstructure entries from the previous target zone, you now have to prime the new target zone with the structure information about the entries in the new target libraries. You can do this with the JCLIN command of SMP/E, using the stage 1 output as input. Assuming the stage 1 output was saved in data set STG1.TGT2.CNTL and an SMP/E procedure similar to SMPPROC, as described in the "Sample SMP/E Cataloged Procedure" appendix in SMP/E for z/OS Reference, is available, the following job primes the new target zone:
//JOB1     JOB 'accounting info',MSGLEVEL=(1,1)
//STEP1    EXEC SMPPROC
//SMP.SMPJCLIN DD DSN=STG1.TGT2.CNTL,DISP=SHR
//SYSIN    DD *
SET      BDY(TGT2)          /* Set to new target.       */.
JCLIN                       /* Update zone.             */.
LIST                        /* List zone.               */.
/*
The new target zone, TGT2, is now ready to be used for the installation of service or new function. When this system has been tested and the old level, TGT1, is no longer required, you can delete it by use of the ZONEDELETE command, as follows:
SET      BDY(TGT1)          /* Set to old target.       */.
ZONEDELETE                  /*                          */
         TZONE(TGT1)        /* Delete it.               */.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014