To replace an existing collection set with a new one, specify the REPLACE parameter on your COLLECT command. The new collection set created by your COLLECT command replaces the existing collection set. Also provide the destination and name of the collection set on your COLLECT command so that CA MIC knows which collection set to replace.
Suppose a collection set named DEFAULT is collecting messages for console TAPECON1. To replace this collection set with a new one that collects messages from job LEDGER, instead of the messages that are currently being collected, issue the following command:
COLLECT REPLACE CONSOLE=TAPECON1 JOBNAME=LEDGER
The default value SETNAME=DEFAULT is omitted from this command.
Example:
To replace a collection set, specify the REPLACE parameter on a COLLECT command. The following example shows you how CA MIC replaces an existing collection set with a new collection set:
CONSOLE=MSTR SETNAME=RULE1, SYSID=EXTERNAL MONITOR=SESSION, ROUTCDE-(3,5) ANY
COLLECT REPLACE SETNAME=RULE1, ACTION WTOR
This results in the following new collection sets:
CONSOLE=MSTR SETNAME=RULE1, SYSID=EXTERNAL ACTION WTOR ANY
Because you specified the REPLACE parameter on the COLLECT command, CA MIC replaces the existing collection set with the new one created by your COLLECT command.
This example assumes you are issuing the COLLECT command from console MSTR. Otherwise, include the value CONSOLE=MSTR on your COLLECT command.
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |