Using wildcards
Suppose that:
TWSDEV.AB.TWS, TWSDEV.AB1.TWS, TWSDEV.OLDAB.TWS, TWSDEV.NEWAB.TWS, TWSDEV.OLDAB1.TWS, andTWSDEV.NEWAB1.TWSare data sets shared among trackers withDEST1,DEST2andDEST3destinations.-
TWSDEV.AB.TWSandTWSDEV.AB1.TWSare not defined in the current plan or special resource database.The controller RESOPTS statement specifies DYNAMICADD(EVENT).
Consider the following XML data:
<?xml version="1.0"?>
<eventRuleSet>
<eventRule name="Monitor_MultipleTriggers1" ruleType="filter" isDraft="no">
<description>Monitor data set changes at DEST1 or DEST2</description>
<eventCondition eventProvider="SMF" eventType="ModificationCompleted">
<FilteringPredicate>
<attributeFilter name="FileName" operator="eq">
<value>TWSDEV.AB*.TWS</value>
</attributeFilter>
<attributeFilter name="Destination" operator="eq">
<value>dest1</value>
<value>dest2</value>
</attributeFilter>
</filteringPredicate>
</eventCondition>
<action actionProvider="Tracker" actionType="SpecialResourceEvent"
reponseType="onDetection"
<parameter name="Availability">
<value>Yes</value>
</parameter>
<parameter name="LifeSpanAction">
<value>No</value>
</parameter>
<parameter name="LifeSpanTime">
<value>60</value>
</parameter>
</action>
</eventRule>
<eventRule name="Monitor_MultipleTriggers2" ruleType="filter" isDraft="no">
<description>Monitor data set changes at DEST3</description>
<eventCondition eventProvider="SMF" eventType="ModificationCompleted">
<FilteringPredicate>
<attributeFilter name="FileName" operator="eq">
<value>TWSDEV.???AB*.TWS</value>
</attributeFilter>
<attributeFilter name="Destination" operator="eq">
<value>dest3</value>
</attributeFilter>
</filteringPredicate>
</eventCondition>
<action actionProvider="Tracker" actionType="SpecialResourceEvent"
reponseType="onDetection"
</action>
</eventRule>
</eventRuleSet>According to the previous event rules:
- At
DEST1orDEST2destination, when SMF writes records that traceTWSDEV.AB.TWSorTWSDEV.AB1.TWSas closed data sets, the tracker requests the controller to defineTWSDEV.AB.TWSorTWSDEV.AB1.TWSas available special resources. - At
DEST3destination, when SMF writes records that traceTWSDEV.OLDAB.TWS,TWSDEV.NEWAB.TWS,TWSDEV.OLDAB1.TWS, andTWSDEV.NEWAB1.TWSas closed data sets, the tracker requests the controller to update the definition ofTWSDEV.OLDAB.TWS,TWSDEV.NEWAB.TWS,TWSDEV.OLDAB1.TWS, andTWSDEV.NEWAB1.TWSspecial resources, setting them to available.