Using wildcards

Suppose that:
  • TWSDEV.AB.TWS, TWSDEV.AB1.TWS, TWSDEV.OLDAB.TWS, TWSDEV.NEWAB.TWS, TWSDEV.OLDAB1.TWS, and TWSDEV.NEWAB1.TWS are data sets shared among trackers with DEST1, DEST2 and DEST3 destinations.
  • TWSDEV.AB.TWS and TWSDEV.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 or DEST2 destination, when SMF writes records that trace TWSDEV.AB.TWS or TWSDEV.AB1.TWS as closed data sets, the tracker requests the controller to define TWSDEV.AB.TWS or TWSDEV.AB1.TWS as available special resources.
  • At DEST3 destination, when SMF writes records that trace TWSDEV.OLDAB.TWS, TWSDEV.NEWAB.TWS, TWSDEV.OLDAB1.TWS, and TWSDEV.NEWAB1.TWS as closed data sets, the tracker requests the controller to update the definition of TWSDEV.OLDAB.TWS, TWSDEV.NEWAB.TWS, TWSDEV.OLDAB1.TWS, and TWSDEV.NEWAB1.TWS special resources, setting them to available.