The following steps show an example of changing the GROUP value
for all the log streams in a structure. Assume that there are log
streams LS1, LS2, LS3, LS4, and LS5 in the structure STRUCA with the
log streams all defined GROUP(TEST).
- Disconnect all applications for the log streams named above
- Use IXCMIAPU to define a new structure STRUCB:
DEFINE STRUCTURE NAME(STRUCB) LOGSNUM(5)
There
will be no GROUP value in the command D LOGGER,STR,STRN=STRUCB. Note
that you only need to define this structure to the LOGR CDS and you
do not need to define it to the CFRM policy. The LOGSNUM attribute
should be at least equal to the number of log streams you are moving.
- Use IXCMIAPU to update the log stream LS1:
UPDATE LOGSTREAM NAME(LS1) STRUCTNAME(STRUCB) GROUP(PRODUCTION)
This
step assigns STRUCB with GROUP(PRODUCTION) and changes log stream
LS1 to GROUP(PRODUCTION).
- Do the same for log streams LS2, LS3, LS4, and LS5 by specifying
STRUCTNAME(STRUCB) GROUP(PRODUCTION) on each IXCMIAPU UPDATE.
When
all log streams LS1, LS2, LS3, LS4, and LS5 in STRUCB are defined
with the desired attribute of GROUP(PRODUCTION), the original structure
STRUCA should have no log streams assigned to it. This allows the
original log streams to be brought back into STRUCA with the value
of GROUP(PRODUCTION).
- Use IXCMIAPU to update LS1 in STRUCB:
UPDATE LOGSTREAM NAME(LS1) STRUCTNAME(STRUCA)
This
step assigns STRUCA with the PRODUCTION value because log stream LS1
is already defined to GROUP(PRODUCTION).
- Do the same for log streams LS2, LS3, LS4, and LS5 in STRUCB by
specifying STRUCTNAME(STRUCA). And then log streams LS1, LS2, LS3,
LS4, and LS5 are assigned to structure STRUCA with the value of GROUP(PRODUCTION).