Information
Newer version of documentation BMC provides a newer version of the documentation for this version of the product. As a result, BMC no longer accepts comments in this space.BMC recommends upgrading to the latest version of the product. To see documentation for that version, see bao8301.

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.

M 8000000 SJSD     18028 22:16:07.38 STC05737 00000090  CSQP013I @JBQ CSQPEXTD NEW EXTENT CREATED FOR PAGE SET 103

E                                         103 00000090  4. NEW EXTENT WILL NOW BE FORMATTED    

To create this Rule

  1. 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/Single

    When 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.

    Warning

    Note

    When creating a Rule for a MLWTO message, the Rule compares the selection criteria values to the content of only the first line (Major line) 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.

  2. 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 changes

    In 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.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC AMI Ops Automation 8.3