COBOL Manual for TNS and TNS/R Programs
Procedure Division
HP COBOL Manual for TNS and TNS/R Programs—522555-006
8-32
I-O Status Code
“37” A permanent error exists because an OPEN statement is attempted on a file that
is required to be a disk file but is supported on some other medium.
“38” A permanent error exists because an OPEN statement is attempted on a file
previously closed with lock.
“39” The OPEN statement is unsuccessful because a conflict has been detected
between the fixed file attributes and the attributes specified for that file in the
program.
Table 8-10. Status Key 2 Values: Unsuccessful Completion—Logic Error
Condition (page 1 of 2)
I-O
Status
Code File Exception Condition
“41” An OPEN statement is attempted for a file already in the open mode, or for one
in a set of files that resides on a multiple file reel set when some other file in that
set is already in the open mode.
“42” A CLOSE, LOCKFILE, or UNLOCKFILE statement is attempted for a file not in
the open mode.
“43” In the sequential access mode, the last input-output statement executed for the
file prior to the execution of a DELETE or REWRITE statement was not a
successfully executed READ statement.
“44” A boundary violation exists for one of these reasons:
•
An attempt is made to write or rewrite a record that is larger than the largest
record description entry specified for the associated file name or smaller
than the smallest record allowed by the RECORD clause of the associated
file name.
•
An attempt is made to rewrite a record to a Sequential file and the record is
not the same size as the record being replaced.
“46” A sequential READ statement is attempted on a file open in the input or I-O
mode and no valid next record has been established for one of these reasons:
•
The preceding START statement was unsuccessful.
•
The preceding READ statement was unsuccessful but did not end at an at-
end condition.
Table 8-9. Status Key 2 Values: Unsuccessful Completion—Permanent Error
Condition (page 2 of 2)
I-O
Status
Code File Exception Condition