NET/MASTER Network Control Language (NCL) Programmer's Guide
Sending a Message to an NCL Process Using the INTQ Command
Environments and Command Processing
16–40 106160 Tandem Computers Incorporated
Sending a Message to
an NCL Process, using
the INTQ Command
An OCS operator can use the NonStop NET/MASTER MS INTQ command from the
OCS command input line to send a message to the dependent request or response
queue of a target NCL process.
Note You should use the WRITE verb, rather than CMD INTQ or INTCMD INTQ, to send a message from
another NCL process to another NCL process. This use of the WRITE verb is discussed later in this
section.
You must specify the NCL ID of the target NCL process in the INTQ command if there
is more than one NCL process executing in the current execution environment or you
are sending the message to an NCL process executing in an environment you do not
own.
The message sent by the INTQ command is treated as a series of parameters, delimited
by blanks. Each parameter can be placed in a separate variable when the message is
read by the INTREAD verb.
Note The INTQ command sends constant data to an NCL process. You should not use the INTQ command to
send a variable, such as an MDO variable, to an NCL process; otherwise, unpredictable results may
occur. You should use the WRITE verb to do this. This use of the WRITE verb is discussed later in this
section.
By default, the INTQ command sends data to the request queue of an NCL process
(TYPE=REQ). You can specify TYPE=RESP to send data to a response queue.
By default, the INTREAD verb reads messages only from the response queue. You
must specify INTREAD TYPE=REQ if you want the INTREAD verb to read a message
only from the request queue. You can specify INTREAD TYPE=ANY if the INTREAD
verb can read messages from either dependent queue.
Note It is your responsibility to ensure that the INTQ command sends messages to the correct queue and that
the INTREAD verb reads messages from the correct queue. You must synchronize INTQ and INTREAD.
You can use the INTQ command to send a message to any NCL process that you own:
that is, any NCL process that is owned by your user ID. If you have sufficient
authority you can use INTQ to send a message to any NCL process in any region, if
the value of the SYSPARMS NCLXUSER system parameter is YES.
Note If you are logged on twice or more with the same user ID, you can use the INTQ command to send a
message from one of your regions to another, regardless of the setting of SYSPARMS NCLXUSER.