WTO - Execute form
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.
Syntax
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=((text addr,),(text addr,),...(text addr,)) | |
text addr: RX-type address
or register (2) - (12). Note:
|
|
,CONNECT=connect field | connect field: RX-type address or register (2) - (12). If you code CONNECT on the execute form of WTO, you must code the same parameter on the list form. |
,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 the same parameter on the list form. | |
,SYSNAME=system name | system name: RX-type address or register (2) - (12). If you code SYSNAME on the execute form of WTO, you must code the same parameter on the list form. |
,CART=cmd/resp token | cmd/resp token: RX-type address or register (2) - (12). If you code CART on the execute form of WTO, you must code CART on the list form. |
,KEY=key | key: RX-type address or register (2) - (12). If you code KEY on the execute form of WTO, you must code KEY on the list form. |
,TOKEN=token | token: RX-type address or register (2) - (12). If you code TOKEN on the execute form of WTO, you must code TOKEN on the list form. |
,JOBID=job id | job id: RX-type address or register (2) - (12). If you code JOBID on the execute form of WTO, you must code JOBID on the list form. |
,JOBNAME=jobname | jobname: RX-type address or register (2) - (12). If you code JOBNAME on the execute form of WTO, you must code JOBNAME on the list form. |
,LINKAGE=SVC | Default: SVC |
,LINKAGE=BRANCH | If you code LINKAGE on the execute form of WTO, you must code LINKAGE on the list form. |
,SYNCH=NO | Default: NO |
,SYNCH=YES | |
,WSPARM=0 | Default: 0 |
,WSPARM=wait state addr | wait state addr: RX-type address or register (2) - (12). |
If you code WSPARM on the execute form of WTO, you must code WSPARM on the list form. | |
,MF=(E,list addr) | list addr: RX-type address, or register (1) - (12). |
Parameters
The parameters are explained under the standard form of the WTO macro, with the following exception:
- ,MF=(E, list addr)
- Specifies the execute form of the WTO macro.
list addr specifies the area that the system uses to store the parameters.
Example
Write a message with a prebuilt parameter list pointed to by register
1.
WTO MF=(E,(1))