Use the WTOR() function to display text on the operator console. WTOR() waits for the console operator's reply and returns it.
The WTO() function produces these return codes:
101 - 102 ARG n MISSING OR INVALID
Example
msgid = wto('operator message',2,2) == '' /* Master console and
highlight */
x = dom(msgid) /* Delete the message */
The WTOR() function takes these arguments:
Reply from the operator (or error text).
Text to appear on the operator's console as the WTOR.
One or more routing codes (like'1' or '1,2,3' or '1-5,8,10,15-128'). For information on routing, see the IBM manual Supervisor Services and Macro Instructions.
One or more descriptor codes (like '1' or '1,2,3' or '1-5,8,10,12-16'). For information on routing and descriptor codes, see the IBM manual Supervisor Services and Macro Instructions.
ID of the console to display the message. If the IMOD is being executed as the result of an operator's command, the imod_console variable will contain the console ID where the command was issued.
The WTOR() function produces these return codes:
ARG 1 MISSING OR INVALID
One of the following for ARG 2:
NON-NUMERIC CHARACTER
CONTIGUOUS RANGES
NUMBER TOO BIG
LIST IS INCOMPLETE
RANGE IS INVALID
ZERO VALUE
One of the following for ARG 3:
NON-NUMERIC CHARACTER
CONTIGUOUS RANGES
NUMBER TOO BIG
LIST IS INCOMPLETE
RANGE IS INVALID
ZERO VALUE
CONSOLE ID INVALID
Example
wtor('an operator question') == 'ANSWER' /* WTOR returns the reply*/
| Copyright © 2012 CA. All rights reserved. | Tell Technical Publications how we can improve this information |