NonStop Pathway/iTS Management Programming Manual— 426749-002
14- 1
14
Error Handling Example Program
This example management program decodes a Pathway subsystem SPI error list. It is
written in COBOL.
The program does the following:
1. Obtains and interprets the ZSPI-TKN-RETCODE token and selects a table based
on the range of ZSPI-TKN-RETCODE. For information on the ZSPI-TKN-
RETCODE token, see the
SPI Programming Manual
and
Section 1, Introduction
,
through
Section 10, Tell Message Commands
, of this manual.
2. Locates and displays the error message text.
3. After opening the error list, decodes and displays the value of the following error
tokens:
ZPWY-TKN-REQCOMMAND
ZPWY-TKN-REQOBJECTTYPE
ZPWY-TKN-REQ
xxx
NAME
ZSPI-DDL-PARM-ERR
ZPWY-TKN-ERROBJECTTYPE
ZPWY-TKN-
xxx
NAME
ZPWY-TKN-ERRINFO
The error tables are created by defining records that contain the text for each error
message, one record for each of the three categories of Pathway subsystem errors
(that is, errors returned by PATHMON, TCP, and SPI). The program then redefines
each record as a table, with an occurrence for each error message.
The source files used in this example are ZSPICOB, which contains SPI/DSM COBOL
definitions, and ZPWYCOB, which contains Pathway/DSM COBOL definitions. The
object file used is COBOLEX0, which contains C00 operating system procedure call
formats.
Summary of Contents for NonStop Pathway/iTS
Page 28: ...Introduction NonStop Pathway iTS Management Programming Manual 426749 002 1 8 SPI Interface ...
Page 270: ...PROG Commands NonStop Pathway iTS Management Programming Manual 426749 002 9 20 START PROG ...
Page 480: ...TCP Event Messages NonStop Pathway iTS Management Programming Manual 426749 002 11 202 ...