search cancel

Stripping a multi line message in the syslog

book

Article ID: 254142

calendar_today

Updated On:

Products

OPS/MVS Event Management & Automation

Issue/Introduction

How to access each individual line in a multiline WTO as IEC393I?

 *IEC393I CATALOG CONTENTION 198
  WARNING: CATALOG TASK CONTENTION WAIT-TIME WAS EXCEEDED.
  RESOURCE(SYSZVVDS)JOBNAME(SOMEJOB)ASID(0099)TCB(008F8440)

Environment

Release : 14.0

Resolution

There are 2 ways OPS can treat this message: 

1) As a normal message rule where you will have a rule executed 3 times

2) As a MLWTO message rule where OPS will keep all lines in one rule execution.

If you use the second method by including the keyword MLWTO in the header of the rule:

)MSG IEC3931I MLWTO

When this keyword is used, OPS generates variables with stems for each line. For example:

msg.text.1 variable will contain the first line of the message

msg.text.2 variable will contain the second line of the message

and so on if the message has more lines.

You can extract the jobname from the variable msg.text.3 variable in this case.