How to create a multi-line WTO with OPS/REXX?
search cancel

How to create a multi-line WTO with OPS/REXX?

book

Article ID: 74460

calendar_today

Updated On:

Products

OPS/MVS Event Management & Automation

Issue/Introduction

How to create a multi-line WTO (MLWTO) with OPS/REXX ?   Optionally, can it be used to test a message rule?  

Environment

Release:
Component: OPSMVS

Resolution

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.  

Additional Information

See the complete reference for the ADDRESS WTO host environment in the link below:

https://docops.ca.com/ca-opsmvs/13-0/en/reference-information/command-and-function-reference/host-environment-commands/address-wto-issue-wto-messages