NET/MASTER Network Control Language (NCL) Reference Manual

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