Previous Topic: Changing the Value for the Inclusion Parameter

Next Topic: How You Delete Collection Sets and Collection Criteria

How You Replace Collection Sets

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:

  1. Start with the following collection set:
    CONSOLE=MSTR SETNAME=RULE1, 
    SYSID=EXTERNAL MONITOR=SESSION,
    ROUTCDE-(3,5) ANY
    
  2. Issue the following command:
    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.