COBOL Manual for TNS and TNS/R Programs
Procedure Division
HP COBOL Manual for TNS and TNS/R Programs—522555-006
8-29
I-O Status Code
Status Key 1
The leftmost character position of the file-status data item is known as Status Key 1
and is set for these conditions.
Table 8-5. Status Key 1 Values
Value Condition Explanation
0 Successful completion The input-output operation was completed without
error.
1 At-end condition A sequential READ statement was unsuccessfully
executed as a result of one of:
•
The physical end of the file was reached.
•
An optional file was not present.
2 Invalid-key condition The input-output statement was unsuccessfully
executed as a result of one of:
•
Sequence error
•
Duplicate key
•
No record found
•
Boundary violation
3 Permanent error The input-output statement was unsuccessfully
executed as a result of a boundary violation for a
sequential file or as a result of an input-output error,
such as data check, parity error, or transmission
error.
4 Logic error The input-output statement was unsuccessfully
executed because the program attempted an
improper sequence of input-output operations or
because a user-defined limit was violated.
9 Implementor-defined error Implementor-defined error means the input-output
statement was unsuccessfully executed as a result
of one of:
•
Program logic error
•
File description inconsistent with associated file