ZONERENAME can help you make a duplicate copy of a CSI, such as
for backup or test. For example, suppose you have a CSI named SMPE.SYSPROD.CSI
containing a target zone named SYSTGT and a DLIB zone named SYSDLB.
You plan to install a new release of z/OS®,
but before doing so, you want to create a copy of this CSI as backup.
The new CSI is to be named SMPE.SYSBKUP.CSI, the copy of SYSTGT is
to be called SYSTGTB, and the copy of SYSDLB is to be called SYSDLBB.
Follow these steps to make a backup copy of your CSI:
- Use access method services (AMS) to define the new CSI data set,
named SMPE.SYSBKUP.CSI. Do not initialize this new CSI with
GIMZPOOL; you are going to copy an existing
CSI data set into it.
- Use AMS REPRO to copy the original CSI data set, SMPE.SYSPROD.CSI,
to the newly defined data set, SMPE.SYSBKUP.CSI.
At this point,
the zones in SMPE.SYSBKUP.CSI still have the same names as the zones
in SMPE.SYSPROD.CSI. Unlike the zones in SMPE.SYSPROD.CSI, however,
none of the zones in SMPE.SYSBKUP.CSI are defined by GLOBALZONE ZONEINDEX
subentries.
- Use the ZONERENAME command to:
- Rename the zones in SMPE.SYSBKUP.CSI.
- Add ZONEINDEX subentries to point to those zones.
- Update the RELATED zone subentries for the zones in SMPE.SYSBKUP.CSI.
Here is an example: SET BDY(GLOBAL) /* Set to global. */.
ZONERENAME(SYSTGT) /* Rename zone SYSTGT */
TO(SYSTGTB) /* to new name SYSTGTB in */
NEWDATASET( /* new CSI data set */
SMPE.SYSBKUP.CSI) /* SMPE.SYSBKUP.CSI. */
RELATED(SYSDLBB) /* Related zone is SYSDLBB. */.
ZONERENAME(SYSDLB) /* Rename zone SYSDLB */
TO(SYSDLBB) /* to new name SYSDLBB in */
NEWDATASET( /* new CSI data set */
SMPE.SYSBKUP.CSI) /* SMPE.SYSBKUP.CSI. */
RELATED(SYSTGTB) /* Related zone is SYSTGTB. */.
After
the ZONERENAME operation, all the information about the zones in the
old CSI (SMPE.SYSPROD.CSI) remains unchanged, and the following changes
have been made for the zones in the new CSI (SMPE.SYSBKUP.CSI):
- The zones in SMPE.SYSBKUP.CSI have been renamed to SYSTGTB and
SYSDLBB.
- New GLOBALZONE ZONEINDEX subentries point to zones SYSTGTB and
SYSDLBB on data set SMPE.SYSBKUP.CSI.
- The TARGETZONE entry for SYSTGTB indicates that the related DLIB
zone is SYSDLBB, and the DLIBZONE entry for SYSDLBB indicates that
the related target zone is SYSTGTB.
Other than the zone definition entries, the content
of the renamed zones remain unchanged.
- Add or change DDDEF entries as appropriate in the SYSTGTB and
SYSDLBB zones.