NET/MASTER Network Control Language (NCL) Programmer's Guide
The Dependent Request and Response Queues
Environments and Command Processing
16–30 106160 Tandem Computers Incorporated
Overriding Command
Display and Logging
When you enter a command from an NCL process by using the CMD core statement
or the INTCMD verb, you can control command echoing and logging.
You can stop a specific command from being echoed to the roll-delete message display
area and from being logged in the NonStop NET/MASTER MS activity log by
preceding the command with the suppression character (-). By using the suppression
character, you display and log only the results of the command. The following
example executes a PROFILE command, but prevents the command from being
displayed and logged:
CMD "-PROFILE CMDKEEP=NO NCLTEST=YES"
The following example prevents both the K and SHOW USERS commands from being
displayed and logged:
CMD "-K;-SHOW USERS"
You can stop a sequence of commands from being echoed to the roll-delete message
display area, but not from being logged in the activity log, by preceding the sequence
with the CONTROL NOCMD verb. By using this verb, you prevent echoing of a
sequence of commands from an NCL process until the NCL process terminates or
executes the CONTROL CMD verb.
The Dependent
Request and
Response Queues
The preceding discussion of dependent processing environments did not discuss one
important subject—the request and response queues that are associated with the
dependent processing environment of every NCL process.
Accordingly, this subsection builds upon the earlier discussion of dependent
processing environments. It explains the purpose of the request and response queues.
In particular, it discusses how to use the INTREAD, INTCLEAR, and INTCONT verbs
in more detail.
The Purpose of the
Request and Response
Queues
Every NCL process can have a dependent processing environment associated with it.
Since every dependent processing environment has two queues associated with it,
every NCL process can have two queues associated with it. These queues are called
the request queue and the response queue.
These queues are automatically created and deleted whenever an NCL process—and
the dependent processing environment associated with it—is created and deleted.
The purpose of the request and response queues is to hold event messages. The
following table summarizes the type of message that each queue holds by default:
Dependent Queue Message Type
Request Messages sent from an OCS operator using the INTQ command.
Response Messages sent from an NCL process using the WRITE verb; and results of
commands executed by an NCL process using the INTCMD verb.
Using two queues to hold different types of event messages makes it easier for you to
process each type of message.