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

Working With Server Classes
Working With Pathway Server Classes
106160 Tandem Computers Incorporated 15–25
2. Type the following panel description file in your user panel library, calling it
ZEX1501P:
#NOTE ZEX1501P
#NOTE Sending a message to and receiving a message from a
#NOTE Pathway server class.
#OPT DEFAULT=%[_
#ERR INTENS=HIGH ALARM=YES
#FLD < INTENS=HIGH JUST=LEFT PAD=-
#FLD $ INTENS=HIGH JUST=CENTRE CAPS=NO PAD=-
#FLD { INTENS=HIGH JUST=RIGHT PAD=-
#FLD ^ INTENS=HIGH COLOR=YELLOW HLITE=REVERSE
#FLD @ INTENS=HIGH COLOR=WHITE
#FLD } TYPE=INPUT REQ=YES
#FLD ~ TYPE=INPUT
#FLD ! TYPE=INPUT REQ=YES RANGE=(0,2) EDIT=NUM
<EXAMPLE $NonStop NET/MASTER : PATHSEND Example{EXAMPLE
%&sysmsg
[ +-----------------------------------+
[ | ^P A T H S E N D E x a m p l e [|
[ +-----------------------------------+
[
[
[ @Status : %&status
[
[
[ @Function code : }fc[ (Value must be 01)
[ @Reply code : ~r[ (Value can be anything)
[ @Message number : !m[ (Value must be 0, 1, or 2)
[
[
[ @Reply : %&reply
[ @SYS.PSEND.RC : %&sys.psend.rc
[ @SYS.PSEND.ERROR : %&sys.psend.error
[ @SYS.PSEND.PSERROR: %&sys.psend.pserror
[
[
[
[ %F3=Exit F4=Return[
[
The panel description file is displayed by the NCL PATHSEND requester. The
panel displays the current status of the server process, allows you to enter data to
send in a request message to the server process, and displays the reply message
from the server process.
The Status field reflects the current status of the server process after a PSEND verb
completes its operation. The request message consists of data entered in the
Function code, Reply code, and Message number fields. The data in the request
message determine the data in the reply message.
The Function code field requires you to enter data. Additionally, the value of
Function code must be 01: otherwise, the reply message from the server process
reports an error. The Reply code field does not require data, and any data is
acceptable. The Message number field requires a value of 0, 1, or 2. To these
numbers, the reply message from the server process is
“ZERO ZERO ZERO ZERO,” “ONE ONE ONE ONE ONE,” or
“TWO TWO TWO TWO TWO,” respectively.