TS/MP Management Programming Manual (G06.24+, H06.03+)

Server Class DEFINE Examples
NonStop TS/MP Management Programming Manual540082-001
16-3
Obtaining Server Class DEFINE Information
Obtaining Server Class DEFINE Information
Example 16-2 presents a functioning SPI requester that obtains DEFINE information
from a server class. No error handling is performed in this example.
To use this example in your own environment, you must supply all values enclosed in
brackets (< >). For example, you would change:
<pathmon-name>.#ZSPI
to:
$PM.#ZSPI
if $PM is the name of the PATHMON process controlling your Pathway subsystem.
#SSPUTV spi^request^buf zpwy^map^sel^scdefine zpwy^ddl^sel^scdefine
#SSPUTV spi^request^buf zpwy^tkn^def^scdefine define^buf
== Open PATHMON and send the request.
[#PUSH
reply^var == holds the reply from PATHMON
io^err == holds I/O error returned during I/O with PATHMON
prompt^var == holds the input to PATHMON
] == end push
#REQUESTER /WAIT [zpwy^val^buflen]/ READ $<pathmonname>.#ZSPI io^err &
reply^var prompt^var
== Send the request buffer.
#APPENDV prompt^var spi^request^buf
== Receive the reply buffer.
#EXTRACTV reply^var spi^reply^buf
== Close PATHMON.
SINK [#REQUESTER CLOSE reply^var]
#UNFRAME
== The DEFINE has been added.
Example 16-1. ADD SCDEFINE Programming Example (page3of3)