Previous Topic: &ZINTYPE

Next Topic: &ZIRSPCNT


&ZIREQCNT

Returns the count of messages queued to an NCL process's dependent request queue.

The dependent request queue is the queue of messages sent to an executing NCL process from an external source using the INTQ command. Messages on this queue are removed by the NCL process by using the &INTREAD TYPE=REQ or TYPE=ANY statement. The process can check for the existence of messages on this queue that are waiting for processing by referencing the &ZIREQCNT variable.

Example: &ZIREQCNT

.REQLOOP
   &IF &ZIREQCNT GT 0 &THEN +
   &DO
      &INTREAD ARGS TYPE=REQ
      &GOTO .REQMSG   &DOEND
   &ELSE +
   &ENDAFTER &WRITE DATA=NO REQUEST MESSAGES
.REQMSG
   .
   -* Processing for requests.
   &GOTO .REQLOOP

More information:

&INTREAD

&ZIRSPCNT