COBOL Manual for TNS/E Programs (H06.08+, J06.03+)
Table 43 Status Key 2 Values: Successful Completion (continued)
File Exception ConditionI-O Status Code
The input-output statement executed successfully; however, for an OPEN statement,
the referenced optional file is not present at the time the OPEN statement is executed
(if the open mode is I-O or EXTEND, the file has been created).
“05”
The input-output statement executed successfully, but a requested option could not be
done for of one of these reasons:
“07”
• For a CLOSE statement with the NO REWIND, REEL or UNIT REMOVAL phrase
or for an OPEN statement with the NO REWIND phrase, the referenced file does
not reside on a reel/unit medium.
• For an OPEN statement that references a file that qualifies for HP COBOL Fast
I-O, sufficient memory for HP COBOL Fast I-O was not available.
The input-output statement is successfully executed, but the circumstances were not
entirely as expected.
“97”
For an OPEN statement, either the referenced file has labels and LABEL RECORDS
OMITTED was specified, or it does not have labels and LABEL RECORDS STANDARD
was specified.
For a READ statement, the retrieved record is currently locked, whether through some
other file name of the run unit or by some other process.
For a START statement, the start operation performed a read operation to validate a
position, and the record that was read was locked.
Table 44 Status Key 2 Values: Unsuccessful Completion—At-End Condition
File Exception ConditionI-O Status Code
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.
“10”
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.
“14”
Table 45 Status Key 2 Values: Unsuccessful Completion—Invalid-Key Condition
File Exception ConditionI-O Status Code
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
“21”
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.
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.
“22”
An attempt has been made to access a record identified by a key, and that record
does not exist in the file.
“23”
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
“24”
file but the relative record number cannot be assigned to the relative key data item
described for the file without a loss of significance.
Input-Output 249










