Using wildcards
Suppose that:
TWSDEV.AB.TWS, TWSDEV.AB1.TWS, TWSDEV.OLDAB.TWS, TWSDEV.NEWAB.TWS, TWSDEV.OLDAB1.TWS
, andTWSDEV.NEWAB1.TWS
are data sets shared among trackers withDEST1
,DEST2
andDEST3
destinations.-
TWSDEV.AB.TWS
andTWSDEV.AB1.TWS
are 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
DEST1
orDEST2
destination, when SMF writes records that traceTWSDEV.AB.TWS
orTWSDEV.AB1.TWS
as closed data sets, the tracker requests the controller to defineTWSDEV.AB.TWS
orTWSDEV.AB1.TWS
as available special resources. - At
DEST3
destination, when SMF writes records that traceTWSDEV.OLDAB.TWS
,TWSDEV.NEWAB.TWS
,TWSDEV.OLDAB1.TWS
, andTWSDEV.NEWAB1.TWS
as closed data sets, the tracker requests the controller to update the definition ofTWSDEV.OLDAB.TWS
,TWSDEV.NEWAB.TWS
,TWSDEV.OLDAB1.TWS
, andTWSDEV.NEWAB1.TWS
special resources, setting them to available.