Mainview AutoOPERATOR: how can I parse the message text to compare values within parenthesis as in this sample WTO? CA-7.SMF3 JOB PBILG24 (0843/345678/BILCTR ) ON AGJ FAILED: JOB CC 0004

Version 3
    Share This:

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    MainView AutoOPERATOR


    COMPONENT:

    MainView AutoOPERATOR



    QUESTION:

    In a MainView AutoOPERATOR Rule, how can I parse the message text to compare values within parenthesis as in this sample WTO?
    CA-7.SMF3 JOB PBILG24 (0843/345678/BILCTR ) ON AGJ FAILED: JOB CC 0004 
    In this example, I would like the 3 values within parenthesis to each be evaluated separately. 
    CA7Number   = 0843 
    JES2 Number = 345678 
    CA7 APPL    = BILCTR 

     


    ANSWER:

    In MainView AutoOPRATOR Rules processing, the text of an event is automatically broken up into event variables for each ‘word’.  A ‘word’ within the event text is characters delimited by either a space or a comma.  For example ‘abc,123’ would be considered 2 ‘words’.  In the previous example these event variables would be available.
    & WORD1: CA-7.SMF3
    & ORD2: JOB
    &WORD3: PBILG24
    &WORD4: (0843/345678/BILCTR
    &WORD5: )
    &WORD6: ON
    &WORD7: AGJ
    &WORD8: FAILED:
    &WORD9: JOB
    &WORD10: CC
    &WORD11: 0004
     
    As you can see, &WORD4 did not break the separate values out.  To resolve this problem you would need to use the Advanced Variable Dependency panel and use Rule Functions.  Depending upon the format of the WTO you might choose to use SUBSTR or Extract to further parse out the values in &WORD4. 
     
     


    Article Number:

    000164152


    Article Type:

    FAQ/Procedural



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles