NET/MASTER Network Control Language (NCL) Reference Manual

&SYS. INT.RSP#
System Variables
106126 Tandem Computers Incorporated 5–49
&SYS.INT.RSP# The &SYS.INT.RSP# system variable contains the number of messages queued to the
dependent response queue of an NCL process. The dependent response queue is the
queue of messages either returned in reply to a command issued by the INTCMD verb
or sent to an executing NCL procedure from an external source by using the INTQ
command.
Messages on this queue are read or removed by the NCL procedure by using the
TYPE=RESP or TYPE=ANY operands of the INTREAD or INTCLEAR verb.
You can check for the existence of messages that are waiting for processing on this
queue, by using the &SYS.INT.RSP# system variable.
&SYS.INT.RSP#
Considerations
For an overview of dependent I/O, refer to the NonStop NET/MASTER NCL
Programmer’s Guide.
See the INTCLEAR and INTREAD verbs in Section 3, “Verbs.”
See also &SYS.INT.REQ#, which contains the number of messages queued to the
dependent request queue.
Example
In the following example, the procedure CHECKIT shows how you might use this
system variable. The procedure checks if there is a value greater than zero in
&SYS.INT.RSP#. If so, the procedure issues a read request:
CHECKIT: PROCEDURE
IF &SYS.INT.RSP# > 0 THEN DO
INTREAD ARGS TYPE=RESP
END
ELSE
WRITE DATA="No request messages"
END CHECKIT