OPS/MVS Event Management & Automation
How to create a multi-line WTO (MLWTO) with OPS/REXX ? Optionally, can it be used to test a message rule?
Here is a sample REXX program that creates a multi-line WTO:
LINE.1="***FIRST LINE OF THE MLWTO***"
LINE.2="***SECOND LINE OF THE MLWTO***"
LINE.3="***THIRD LINE OF THE MLWTO***"
ADDRESS WTO "TEXTVAR('"LINE."') MSGID(TESTWTO) ROUTE(2)"
You will need to create it as a member in your user REXX library (yourrexxmembername). You may optionally use this to test a message rule.
To issue the MLWTO to the OPSLOG so that a message rule can react to it, you can enter on the command line:
TSO OI yourrexxmembername
This will send the MLWTO to the OPSLOG.