On 8/18/2016 8:50 PM, jerrysconsult...@gmail.com wrote:
<snip>
With my meager SMPE knowledge I am confused about when to use zonecopy vs
zonemerge vs zoneexport/zoneimport to rename and move the global CSI and to
rename the distribution CSI.
Could some kind soul please point me in the right direction?
Since your zones are all in different VSAM data sets (which I do
recommend, so good job), then you can avoid ZONEMERGE, ZONECOPY,
ZONEEXPORT/ZONEIMPORT. Personally, I try to avoid those commands
because I never can remember how they work and which to use in which
situation without reading the SMP/E Commands book.
I will assume you know how to copy and rename the VSAM CSI data sets
using one or more system utilities, such as IDCAMS REPRO, ADRDSSU, or
whatever your favorite data mover is. After you rename and/or copy the
data sets, you then only need to update the global zone so that it
points to the new data set names for your target and dlib zones.
You can use the SMP/E ISPF Administration dialog to update the ZONEINDEX
subentries in the global zone to point to your new name target and dlib
zone data sets. Or you can use the UCLIN command, like so:
SET BOUNDARY(GLOBAL).
UCLIN.
DEL GLOBALZONE ZONEINDEX(
(tgt-zone-name)
(dlib-zone-name)
).
ADD GLOBALZONE ZONEINDEX(
(tgt-zone-name,new-tgt-data-set-name.CSI,TARGET)
(dlib-zone-name,new-dlib-data-set-name.CSI,DLIB)
).
ENDUCL.
If you want to change the target and dlib zone names at the same time,
then use the ZONERENAME command instead of UCLIN, like so:
SET BOUNDARY(GLOBAL).
ZONERENAME(old-tgt-zone-name) TO(new-tgt-zone-name)
NEWDATASET(new-tgt-data-set-name.CSI).
ZONERENAME(old-dlib-zone-name) TO(new-dlib-zone-name)
NEWDATASET(new-dlib-zone-data-set-name.CSI).
Kurt Quackenbush -- IBM, SMP/E Development
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN