Example 3: creating a Rule where MLWTO minor = ALL
In this example, a MLWTO message is processed by the Rule as a complete entity because MLWTO minor = ALL is specified on the Selection Criteria panel.
The Rule in this example uses the Variable Dependencies panel and the variable LINEx_WORDn to help the Rule fire based on content within the MLWTO such as the message ID of the major message, the job name, and some additional information in the first and fifth minor lines of the message.
When all of search criteria and variable dependency criteria is met, this example Rule creates an ALERT with the appropriate message.
The MLWTO message is
E 103 00000090 4. NEW EXTENT WILL NOW BE FORMATTED
To create a Rule where MLWTO minor = ALL
Fill in the Selection Criteria - MQW panel as follows:
BMC Software ------------- Selection Criteria - MQW ------------ AutoOPERATOR
COMMAND ===> TGT --- JB82
Rule-set === AAORULMQ Rule-id === CSQP013I
Text Description:
Text ID ===> CSQP013I Ignore leading plus ==>
Text String (Enter Below):
Issuer Identification:
Job name ===> CSQHMSTR Name of MQ MSTR or CHINIT
MLWTO Minor ===> ALL All/SingleWhen MLWTO Minor ===> ALL is specified, all the lines of multiline WTO message are processed by the Rule as a single entity. BMC Software recommends that you use the variables &LINEx_WORDn variables on the Variable Dependencies panel so that the Rule can fire based on specific content of the MLWTO.
With the &LINEx_WORDn, x is set for every line of the MLWTO and n is set for every word in a line.
Press Enter the Variable Dependencies - MQW panel is displayed as shown in the following figure.Variable Dependencies for MLWTO Minor=ALL
BMC Software ------------ Variable Dependencies - MQW ---------- AutoOPERATOR
COMMAND ===> TGT --- JB82
Rule-set === AAORULMQ Rule-id === CSQP013I
OR/
Variable-name Op Variable-Value AND
LINE2_WORD1_____________________ EQ 4._________________________________ ___
________________________________ __ ___________________________________ ___
________________________________ __ ___________________________________ ___
________________________________ __ ___________________________________ ___
________________________________ __ ___________________________________ ___
________________________________ __ ___________________________________ ___
________________________________ __ ___________________________________ ___
________________________________ __ ___________________________________ ___
________________________________ __ ___________________________________ ___
________________________________ __ ___________________________________ ___
________________________________ __ ___________________________________ ___
________________________________ __ ___________________________________ ___
________________________________ __ ___________________________________
--> ATTENTION: Use ASV command to add ASV criteria to the rule <--
Press ENTER to continue, END return to Detail Control, CANCEL to cancel changesPress Enter until the Alert Action(s) I - MQW panel is displayed as shown in the following figure.The following entry on the Alert Action(s) II - MQW panel specify that when the Rule fires, a MainView AutoOPERATOR ALERT will be created.
Alert Action(s) I - MQW for MLWTO Minor=ALL
BMC Software -------------- Alert Action(s) I - MQW ------------- AutoOPERATOR
COMMAND ===> TGT --- JB82
Rule-set === AAORULMQ Rule-id === CSQP013I
Function ===> ADD (ADD, DELETE, DELETEQ)
Key ===> &IMFOJOB.&IMFMSGID
Text ===> MQ Address Space &IMFOJOB new extent for pageset ID &LINE2_WORD1
Queues ===> MQWTO Alert Queue Name(s)
Priority ===> (CRIT,MAJ,MIN,WARN,INFO,CLEAR)
Color ===> RED,PINK,YEL,DKBL,LTBL,GRE,WHI
PCMD ===>
System ===> Return to target after PCMD
* EXEC ===> Follow-up EXEC
Help ===> Associated HELP Panel
Targets ===> Target System
Udata ===> User Data
Origin ===> Origin
User ===> Userid
Alarm ===> Sound Alarm (YES/NO)
Publish ===> Alert Publishing Mode
* Enter a question mark(?) and blank for more options.
Press ENTER to continue, END return to Detail Control, CANCEL to cancel change- Press Enter and finish completing the Rule.