Example 4: creating a Rule where MLWTO minor = SINGLE
In this example, a MLWTO message is processed by the Rule where each minor line of the MLWTO can cause the Rule to fire because MLWTO minor ===> SINGLE is specified on the Selection Criteria panel.
This example Rule fires based on the message ID of the major and additional information from the minor messages.
The following MLWTO message is the same as the message used for Example 3: Creating a Rule where MLWTO minor = ALL.
E 103 00000090 4. NEW EXTENT WILL NOW BE FORMATTED
To create this Rule
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 ===> SINGLE All/SingleWhen MLWTO Minor ===> SINGLE is specified, each individual line of multiline WTO message are processed by the Rule as separate events. BMC recommends that you use the variables &LINE2_WORDn variables on the Variable Dependencies panel so that the Rule can fire based on specific content of the MLWTO.
With the &LINE2_WORDn variable, LINE2 resolves to each and every line of the MLWTO and a WORDn variable resolves for each word of each line of the MLWTO.
Press Enter; the Variable Dependencies - MQW panel is displayed as shown in the following figure.Variable Dependencies for MLWTO Minor=SINGLE
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 changesIn this example, when you specify the variable LINE2_WORD1, the Rule Processor checks the first word in each and every line of the MLWTO message and checks the value of the first word.
When these characters resolve to 4 on any line of the MLWTO, the Rule fires. In this case, the Rule fires because on line 2 of the MLWTO, in the first word, the first 2 characters starting at position 1 contain 4.
You should contrast this example with the one in Example 3: Creating a Rule where MLWTO minor = ALL because the same MLWTO is used in both examples but based on the MLWTO Minor setting and the variables used, the Rule processes the major and minor lines of the MLWTO differently.