This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.
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
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
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.