NET/MASTER Network Control Language (NCL) Programmer's Guide

Controlling Access to a Server Class by NonStop NET/MASTER MS
Working With Pathway Server Classes
106160 Tandem Computers Incorporated 15–9
Reassigning a Server Class Identifier to Another Server Class
The ability to associate and disassociate a server class from an identifier provides you
with considerable flexibility in handling server classes. In particular, it allows you to
change the server classes that are referred to by an NCL process without modifying
the NCL process.
The following step-by-step example shows how to associate a server class with an
identifier, disassociate the server class from the identifier, and associate another server
class with the same identifier:
1. Associate a server class, SERVERCLASS1, with an identifier, PSC_1, when you
make the server class available for use by NonStop NET/MASTER MS, using the
following PSNDCTL command:
PSNDCTL OPEN=\SYS1.$PMON.SERVERCLASS1 ID=PSC_1
The server class is also available for use by NCL.
2. Make another server class available for use by NonStop NET/MASTER MS,
SERVERCLASS2, without a server class identifier, using the following PSNDCTL
command:
PSNDCTL OPEN=\SYS1.$PMON.SERVERCLASS2
The server class is not available for use by NCL.
3. Write an NCL procedure called PROC1 that refers to a server class with the
identifier of PSC_1. The NCL procedure has statements such as the following:
PSEND OPEN ID=PSC_1 FORMAT=MAPPED MAP=REPMAP
PSEND SEND ID=PSC_1 MDO=&REQMDO. TO MDO=&REPMDO.
PSEND CLOSE ID=PSC_1
If the NCL procedure is executed at this stage, all PSEND verbs in PROC1 refer to
SERVERCLASS1 because SERVERCLASS1 is associated with the server class
identifier of PSC_1.
4. Disassociate PSC_1 from SERVERCLASS1 using the following PSNDCTL
command:
PSNDCTL STOP=PSC_1
The server class is no longer available for use by NCL.
5. Associate PSC_1 with SERVERCLASS2 using the following PSNDCTL command:
PSNDCTL \SYS1.$PMON.SERVERCLASS2=PSC_1
The server class is now available for use by NCL. If the NCL procedure is
executed at this stage, all PSEND verbs in PROC1 refer to SERVERCLASS2
because SERVERCLASS2 is associated with the server class identifier of PSC_1.