Using the Rules
To properly use the two Rules created in these examples, NEWRULE5 should come before NEWRULE6 in the Rule Set. In other words, NEWRULE6 should follow immediately after NEWRULE5.
Set the automation strategy of the Rule Set to FIRST, which means that events are evaluated through the Rule Set and only the first Rule that matches with an event will be fired. Once the Rule fires, the event is handled and subsequent Rules are not compared against the event and, therefore, will not fire.
In this example, each time the IEF403I message matches NEWRULE5, the value of variable &!a.imfjtype.&imfjnum will increase by 1. When the value reaches 13, the NEWRULE6 will fire because the value of the &!a.imfjtype.&imfjnum has become greater than 12 and an ALERT will be issued.
The ALERT will call attention to the fact that a job has started more than 12 times, which might indicate that the job needs operator attention.
Related topic