WTO - List form

Use the list form of the WTO macro together with the execute form of the macro for applications that require reentrant code. The list form of the macro defines an area of storage, which the execute form of the macro uses to store the parameters.

Syntax

The list form of the WTO macro is written as follows:

Syntax Description
   
   name name: Symbol. Begin name in column 1.
   
One or more blanks must precede WTO.
   
WTO  
   
One or more blanks must follow WTO.
   

‘msg’
(‘text’)
(‘text’,line type)
TEXT=
TEXT=((,line type),(,line
 type),...(,line type))

msg: Up to 126 characters.
text: Up to 126 characters.

Note:
  1. If you code ‘msg’ or (‘text’...), it must be the first parameter you code.
  2. For a single-line WTO, the parameter value is not required on TEXT for the list form. Code only TEXT=. Then code TEXT=(text addr) on the execute form.
   
  The permissible line types, text lengths, and maximum numbers of each line type are shown below:
line type    text        maximum number
C            34 char     1 C type
L            70 char     2 L type
D            70 char     10 D type
DE           70 char     1 DE type
             or
E            None        1 E type
   
  The maximum total number of lines that can be coded in one instruction is 10.
   
   ,ROUTCDE=(routing code) routing code: Decimal digit from 1 to 28. The routing code is one or more codes, separated by commas, or a hyphen to indicate a range.
   
   ,MCSFLAG=(flag name) flag name: Any combination of the following, separated by commas:
CMD
HRDCPY
RESP
REPLY
NOTIME
BRDCST
   
   ,DESC=(descriptor code) descriptor code: Decimal digit from 1 to 13. The descriptor code is one or more codes, separated by commas.
   
   ,CART=

Parameter value not required for list form.  Code only CART=.
If you code CART on the list form of WTO, you must code CART
on the execute form.

   
   ,KEY=

Parameter value not required for list form.  Code only KEY=.
If you code KEY on the list form of WTO, you must code KEY
on the execute form.

   
   ,TOKEN=

Parameter value not required for list form.  Code only TOKEN=.
If you code TOKEN on the list form of WTO, you must code
TOKEN on the execute form.

   

   ,CONSID=
   ,CONSNAME=

Parameter value not required for list form.  Code only CONSID=
or CONSNAME=.
If you code CONSID (or CONSNAME) on the list form of WTO,
you must code CONSID (or CONSNAME) on the execute form.

   
,MF=L  
   

Parameters

The parameters are explained under the standard form of the WTO macro, with the following exception:

,MF=L
Specifies the list form of the WTO macro.

Example

Set up the list form of a WTO, and send an immediate action message to the master console.
MYLIST   WTO   'USR001I CRITICAL RESOURCE SHORTAGE DETECTED',          X
               ROUTCDE=(1,10),                                         X
               DESC=(2),CONSID=,MF=L