This function displays text on the operator console. WTOR() waits for the reply from the operator of the console and returns it.
101 - 102 ARG n MISSING OR INVALID
Example
msgid = wto('operator message',2,2) == '' /* Master console and highlight */ x = dom(msgid) /* Delete the message */
Parameters
Reply from the operator (or error text).
Text to appear on the console of the operator as the WTOR.
One or more routing codes (like'1' or '1,2,3' or '1-5,8,10,15-128'). For information about routing, see the IBM guide 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 about routing and descriptor codes, see the IBM guide 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 command, the imod_console variable contains the console ID where the command was issued.
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 © 2014 CA Technologies.
All rights reserved.
|
|