Use the execute form of the WTO macro together with the list form of the macro for applications that require reentrant code. The execute form of the macro stores the parameters into the storage area defined by the list form.
The message cannot be modified on the execute form of the macro if you code inline text (‘msg’ or (‘text’...)) on the list form.
The execute 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. |
TEXT=(text addr) |
text addr: RX-type address
or register (2) - (12). Note:
|
,CART=cmd/resp token | cmd/resp token: RX-type address or register (2) - (12). |
,KEY=key | key: RX-type address or register (2) - (12). |
,TOKEN=token | token: RX-type address or register (2) - (12). |
,CONSID=console id | console id: RX-type address or register (2) - (12). |
,CONSNAME=console name | console name: RX-type address or register (2) - (12). If you code CONSID (or CONSNAME) on the execute form of WTO, you must code CONSID (or CONSNAME) on the list form. |
,MF=(E,list addr) | list addr: RX-type address, or register (1) - (12). |
The parameters are explained under the standard form of the WTO macro, with the following exception:
list addr specifies the area that the system uses to store the parameters.
WTO MF=(E,(1))
R2 EQU 2
R4 EQU 4
.
.
.
LA R2,MYLIST ADDRESS OF PARAMETER LIST
L R4,MYCONID CONSOLE ID
WTO MF=(E,(R2)),CONSID=R4
.
.
.
MYCONID DC F'1'