SVC 35 (0A23)

WTO/ WTOR macro - is type 4, gets LOCAL and CMS locks.

Calls module IEAVM600.

GTF data is:
R15
No applicable data.
R1
Address of the parameter list.
R0
Three high order bytes—a new line is to be connected to the message with this three byte message ID. For a message reissuance - address of the Write-To-Operator Queue Element (WQE) control block created from the original issuance. If the information was specified on the WTO macro - contains zeros.
Length of PLIST (1 byte)
includes routing and descriptor code field, if present.
PLIST
If routing and descriptor codes are present, they are appended to the parameter lists, increasing the lengths of the parameter lists by four bytes. However, if a WPX is generated, it extends the length by up to 124 bytes.
PLIST for WTO:
Bytes

The following offsets are unpredictable due to the variable length of the previous field.

If a WPX is not generated, routing and descriptor codes (if present) are as follows:
If a WPX is generated, however, it follows the message text:
(n+1)-(n+103)
WPX. Its format follows:
1
Version level.
2
Flags.
3
Length of reply buffer.
4
Length of WPX.
5-6
Extended MCS flags.
7-8
Control program flags.
9-12
Reply buffer address.
13-16
Reply ECB address.
17-20
DOM/Connect ID.
21-22
Descriptor codes (same mapping as above).
23-24
Reserved.
25-40
Routing codes.
41-42
Message type flags.
43-44
Reserved.
45-52
Job ID.
53-60
Job name.
61-68
Retrieval key.
69-72
Token for DOM.
73-76
Console ID.
77-84
System name.
85-92
Console name.
93-96
Address of a 12-byte field for replying console name/ID.
97-100
Address of CART.
101-104
Address of wait state parameter list.
105-108
ASCB address.
109-124
Reserved.
PLIST for succeeding lines in a multiple line WTO:
Bytes
PLIST for WTOR (24-bit mode):
Bytes
Contents
0
Length of the reply. High order bit is set to 1.
1-3
Address of the reply buffer.
4-7
Address of the reply ECB.
8
Zeros.
9
Message length + 4.
10-11
MCS flag bytes (same as in WTO PLIST).
12-19
First 8 bytes of the message text. Normally, the message ID.
20-23
Routing and descriptor codes, if present.
PLIST for WTOR (31-bit mode) without a WPX:
Bytes
Contents
0-3
Addressing mode indicator and address of the reply buffer. High order bit of byte 0 is set to 1.
4-7
Address of the reply ECB.
8
Length of reply buffer.
9
Message length + 4.
10-11
MCS flag bytes (same as in WTO PLIST).
12-19
First 8 bytes of the message text. Normally, the message ID.
20-23
Routing and descriptor codes, if present.
PLIST for WTOR (31-bit mode) with a WPX:
Bytes
Contents
0
High order bit is set to 1, others set to 0.
1
Message length + 4.
2-3
MCS flag bytes (same as in WTO PLIST).
4-11
First 8 bytes of the message text. Normally, the message ID.
12-115
WPX. Its format follows:
1
Version level.
2
MPF/SUBSMOD flags.
3
Length of reply buffer.
4
Reserved.
5-6
Extended MCS flags.
7-8
Reserved.
9-12
Reply buffer address.
13-16
Reply ECB address.
17-20
DOM/Connect ID.
21-22
Descriptor codes (same mapping as above).
23-24
Reserved.
25-40
Routing codes.
41-42
Message type flags.
43-44
Message's priority.
45-52
Job ID.
53-60
Job name.
61-68
Retrieval key.
69-72
Token for DOM.
73-76
Console ID.
77-84
System name.
85-92
Console name.
93-96
Address of a 12-byte field for replying console name/ID.
97-100
Address of CART
101-104
Address of wait state parameter list.

PLIST for WTO with WQEBLK (WPLMCSFO bit is on):

Contains only 4 bytes of data (the parameter list length and the MCS flags).