Example 2: creating a Rule where MLWTO minor = SINGLE
D 672 00000281 SYSTEM COMPLETION CODE=0C4
D 672 00000281 TIME=02.28.39 SEQ=00112 CPU=0000 ASID=005A
D 672 00000281 PSW AT TIME OF ERROR 078D1000 80007954 ILC 2 INTC 01
D 672 00000281 ACTIVE LOAD MODULE ADDRESS=00007708 OFFSET=0000024C
D 672 00000281 NAME=ACCTPAY
D 672 00000281 DATA AT PSW 0000794E - 00011311 0A019140 B7F14770
D 672 00000281 GR 0: 00000000_00000001 1: 00000000_FFFF6F70
D 672 00000281 2: 00000000_0000943C 3: 00000000_00009098
D 672 00000281 4: 00000000_000090CA 5: 00000000_000090F2
D 672 00000281 6: 00000000_00000004 7: 00000000_0000917C
D 672 00000281 8: 00000000_000091A4 9: 00000000_00009210
D 672 00000281 A: 00000000_00009706 B: 00000000_00008707
D 672 00000281 C: 00000000_80007708 D: 00000000_00008E60
D 672 00000281 E: 00000000_800078FE F: 00000004_807EF278
E 672 00000281 END OF SYMPTOM DUMP
To create this Rule
Fill in the Selection Criteria - MSG panel as follows:
BMC Software ------------ Selection Criteria - MSG ----------- BMC AMI OpsA
COMMAND ===> TGT --- AOAO
Rule-set === RUL01 Rule-id === SLIPX33E
Text Description:
Text ID ===> IEA995I Ignore leading plus:
Text String (Enter Below):
Issuer Identification:
Job name ===> PROD Name of issuer
Type ===> (JOB, STC, or TSO)
Jobclass ===> Job class of issuer
Acct Info ===> Job accounting information
RACF User ===> RACF Userid
RACF Group ===> RACF Group name
Route Codes ===>
Desc Codes ===>
Console Name ==> Destination Console Name
MLWTO Minor ===> SINGLE Single/All
Press ENTER to continue, END return to Detail Control, CANCEL to cancel changesWhen MLWTO Minor ===> SINGLE is specified, each individual line of multiline WTO message are processed by the Rule as separate events. BMC Software 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 - MSG panel is displayed as shown in the following figure.
BMC Software ------------ Variable Dependencies - MSG ---------- BMC AMI OpsA
COMMAND ===> TGT --- AOAO
Rule-set === RUL01 Rule-id === ABNDPROD
OR/
Variable-name Op Variable-Value AND
LINE2_WORD3:6:3_________________ EQ 0C4________________________________ AND
________________________________ __ ___________________________________ ___
________________________________ __ ___________________________________ ___
________________________________ __ ___________________________________ ___
________________________________ __ ___________________________________ ___
________________________________ __ ___________________________________ ___
________________________________ __ ___________________________________ ___
________________________________ __ ___________________________________ ___
________________________________ __ ___________________________________ ___
________________________________ __ ___________________________________ ___
________________________________ __ ___________________________________ ___
________________________________ __ ___________________________________ ___
________________________________ __ ___________________________________
--> 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_WORD3:6:3, the Rule Processor checks the third word in each and every line of the MLWTO message and checks the value of the last 3 characters starting at position 6.
When these characters resolve to 0C4 on any line of the MLWTO, the Rule fires. In this case, the Rule fires because on line 2 of the MLWTO, in the third word, the last 3 characters starting at position 6 contain 0C4.
You should contrast this example with the one in Example-1-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.
In addition, when you specify MLWTO Minor = SINGLE, the Rule cannot take the action of suppressing the message or preventing it from being recorded in the CONSOLE or the MVS SYSLOG.
To perform both automation and suppress the WTO, you can create another Rule for the WTO but create it the same as any other single line WTO, and do not specify any values in "MLWTO Minor" field. Then, ensure this Rule follows the Rule performing the automation actions and also ensure that Rule Set strategy is ALL.