9.140 ISSUEINQUIRY
Þ Note: Built-In Function Rules.
Issues an inquiry message to a message queue.
For use with
|
Arguments
|
Return Values
|
Examples
Issue a message to ask who is signed on to a terminal:
USE BUILTIN(ISSUEINQUIRY) WITH_ARGS(DSP16 T 'Who are you ?')
TO_GET(#REPLY)
Issue a message to ask operator if MYJOB can be submitted at this time:
CHANGE FIELD(#MSGID) TO(MSG0120)
CHANGE FIELD(#MSGF) TO(OPRMSGF)
CHANGE FIELD(#SUB) TO('MYJOB')
USE BUILTIN(ISSUEINQUIRY) WITH_ARGS(DSP01 M #MSGID #MSGF
'*LIBL' #SUB) TO_GET(#REPLY)
IF COND('#REPLY *EQ Y')
SUBMIT PROCESS(BTCHJOB) FUNCTION(UPDATE)
ELSE
MESSAGE MSGTXT('Job not submitted')
ENDIF
MSG0120 = Can &1 be submitted at this time ?
Note: The message data parameter corresponds directly to the MSGDTA parameter in the CL command SNDUSRMSG. The passing of information through this parameter is your responsibility. For more information on passing substitution variables see the appropriate IBM manuals.