How to correlate the execution of one rule with the execution of another rule?
For example, a product issues the following 2 messages:
PDT0185 ABEND=S0C1 MODULE=DT$DII OFFSET=00005E64 DB2=101
PDT0102 DETECTOR TERM IN PROGRESS FOR DB2=XXX USER=CONSOLE
A restart of the service must be performed when the second message appears but only when first message has also appeared.
GLVJOBID)
can be used to save information from the first execution of the rule to be used at the second rule.GLVJOBID.ABEND = 'YES'
)MSG PDT0102
At the other message rule:
)PROC
if OPSVALUE('GLVJOBID.ABEND','E') = 'N' then /* if the variable does not exist exit */
return
/* Take actions here to restart the service */
/* then delete the variable to prepare to the next execution */
REM = OPSVALUE('GLVJOBID.ABEND','R')