COBOL Manual for TNS and TNS/R Programs

Procedure Division
HP COBOL Manual for TNS and TNS/R Programs522555-006
8-31
I-O Status Code
Table 8-7. Status Key 2 Values: Unsuccessful Completion—At-End Condition
I-O
Status
Code File Exception Condition
“10” A sequential READ statement is attempted and no next logical record exists in
the file because the logical end of the file has been reached.
“14” A sequential READ statement is attempted for a relative file, but the relative
record number cannot be assigned to the relative key data item described for the
file without a loss of significance.
Table 8-8. Status Key 2 Values: Unsuccessful Completion—Invalid-Key
Condition
I-O
Status
Code File Exception Condition
“21” A sequence error exists for a sequentially-accessed Indexed file. The prime
record key value has been changed by the program between the successful
execution of a READ statement and the execution of the next REWRITE
statement for that file, or the ascending sequence requirements for successive
record key values are violated.
“22” An attempt has been made to write or rewrite a record that would create a
duplicate relative key, a duplicate prime record key, or a duplicate alternate
record key for which uniqueness is required.
“23” An attempt has been made to access a record identified by a key, and that record
does not exist in the file.
“24” An attempt has been made to write beyond the externally-defined boundaries of
a relative or indexed file, or a sequential WRITE statement is attempted for a
relative file but the relative record number cannot be assigned to the relative key
data item described for the file without a loss of significance.
Table 8-9. Status Key 2 Values: Unsuccessful Completion—Permanent Error
Condition (page 1 of 2)
I-O
Status
Code File Exception Condition
“30” A permanent error exists and no further information is available concerning the
input-output operation.
“34” A permanent error exists because of a boundary violation. This condition
indicates that an attempt has been made to write beyond the externally-defined
boundaries of a sequential file.
“35” A permanent error exists because an OPEN statement with the INPUT, I-O, or
EXTEND phrase is attempted on a required file that is not present.