NET/MASTER Network Control Language (NCL) Programmer's Guide
Making a Server Class Available for Access by NCL
Working With Pathway Server Classes
106160 Tandem Computers Incorporated 15–13
Making a Server Class
Available for Access
by NCL
The PSEND OPEN verb makes a server class available for processing by subsequent
PSEND verbs. You must make a server class available using the PSEND OPEN verb
before any other PSEND verb can work with a server class.
Specifying the Server Class
Identifier
The PSEND OPEN verb must specify the server class identifier of a server class using
the ID operand when it makes the server class available. This establishes a logical
connection between the NCL process and the server class. The following code
segment uses the PSNDCTL OPEN command from NCL to make a server class
available for system-wide access. It uses the PSEND OPEN verb to make the server
class available from NCL:
…
INTCLEAR
INTCMD "PSNDCTL OPEN=\SYS1.$PMON.SERVERCLASS1 ID=PSC_1"
INTREAD
INTCONT
PSEND OPEN ID=PSC_1 FORMAT=MAPPED MAP=REPMAP
…
Although the PSEND OPEN verb must specify a server class identifier when it makes
a server class available, specifying an identifier on other PSEND verbs is optional. If a
PSEND verb does not explicitly identify an identifier, NCL assumes that the PSEND
verb refers to the server class identified by the current identifier. Explicitly setting the
current identifier and other server class characteristics using the PSEND SET verb is
discussed later in this section.
Specifying Different Local
Server Class Identifiers
All server classes available for use by NCL have one system-wide server class
identifier assigned using the PSNDCTL command. This server class identifier is used
by the PSEND OPEN verb to identify a server class when it makes the server class
available from an NCL process.
When a PSEND OPEN verb makes a server class available, it can specify a different
local server class identifier by which subsequent PSEND verbs in the same NCL
process can refer to the server class. This allows a server class to have one
system-wide identifier but different local server class identifiers.
If you are using multiple local server class identifiers, you can determine the current
local server class identifier by interrogating the system variable &SYS.PSEND.ID.