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–15
After a server class is assigned a system-wide server class identifier by the
PSNDCTL command, the NCL process uses one PSEND OPEN verb to make the
server class available. The PSEND OPEN verb uses both the PSNDID operand,
which specifies the system-wide server class identifier of the server class, and the
ID operand, which explicitly assigns a different local server class identifier to the
server class. That is, the PSNDID operand and the ID operand specify different
identifiers. This means that the local server class identifier used in the NCL
process is different from the system-wide server class identifier assigned by the
PSNDCTL command. The following code segment illustrates this:
…
INTCLEAR
INTCMD "PSNDCTL OPEN=\SYS1.$PMON.SERVERCLASS1 ID=SYSID_1"
INTREAD
INTCONT
PSEND OPEN PSNDID=SYSID_1 ID=LOCID_1 FORMAT=UNMAPPED
…
PSEND SEND ID=LOCID_1 DATA=ABC TO VARS=&REPLY
…
After a server class is assigned a system-wide server class identifier by the
PSNDCTL command, the NCL process uses multiple PSEND OPEN verbs to make
the server class available. Each PSEND verb uses both the PSNDID operand,
which specifies the system-wide server class identifier of the server class, and the
ID operand, which specifies a different local server class identifier. This allows a
server class to have different local server class identifiers. The following code
segment illustrates this:
…
INTCLEAR
INTCMD "PSNDCTL OPEN=\SYS1.$PMON.SERVERCLASS1 ID=SYSID_1"
INTREAD
INTCONT
PSEND OPEN PSNDID=SYSID_1 ID=LOCID_1 FORMAT=MAPPED,
MAP=REPMAP
PSEND OPEN PSNDID=SYSID_1 ID=LOCID_2 FORMAT=UNMAPPED
…
PSEND SEND ID=LOCID_1 MDO=&REQMDO. TO MDO=&REPMDO.
PSEND SEND ID=LOCID_2 VARS=&REQUEST* TO VARS=&REPLY
…