Device Errors; Cobol Execution Errors - IBM 5280 Programmer's Manual

Distributed data system, cobol
Hide thumbs Also See for 5280:
Table of Contents

Advertisement

Device Errors
COBOL Execution Errors
I/O device errors that occur during program execution are also indicated on
the status line. After a device error, the status line is in the following format:
----+----1----+----2----+----3----+----4
P AAAA CCCC-LL PPPPPPPP DDDDDDDDDDDDDDDD
P
(in position 1) is the partition number.
AAAA (in positions 3-6) is the address of the device in the form of a four-digit
code (for example 4000, 4400, etc.)
ecce
(in positions 8-11) is the error message code. This code corresponds to
a recovery procedure in the Message Manual. The operator should write the
error code on a piece of paper, or already know the correct error procedure
before pressing the Reset key.
LL
(in positions 13-14) is the logical device ID.
PPPPPPPP
(in positions 16-23) is the name assigned to the COBOL program
in the IDENTIFICATION DIVISION of the source program. If multiple
COBOL programs are called, it is the name of the main program.
DDDDDDDDDDDDDDDD
(in positions 25-40) corresponds to the last 16
positions of the data set name given at allocation.
COBOL execution errors usually occur because of faulty logic in the program.
Some possible causes of these errors are discussed in Chapter 9 under
"Possible Causes of Execution Error Messages".
After a COBOL execution error, the status line is in the following format:
----+----1----+----2----+----3----+----4
P
CCCC
NNNNNN IIIIIIII
P
(in position 1) is the partition number.
ecce
(in positions 8-11) is the error message code. This code corresponds to
a recovery procedure in the Message Manual. The operator should write the
error code on a piece of paper, or already know the correct error procedure
before pressing the Reset key.
NNNNNN
(in positions 25-30) corresponds to the number in the compiler
listing of the COBOL program where the error occurred. The number is
determined by the STMT or NUMBER options as described in Chapter 7.
The number is displayed only if the GONUMBER option (also described in
Chapter 7) is specified at compilation.
11111111
(in positions 32-39). The characters in these positions, when present,
are explained for the related message in the Messages Manual.
Chapter 8. Guide for COBOL Program Execution
8- 13

Advertisement

Table of Contents
loading

Table of Contents