COBOL Manual for TNS/E Programs (H06.08+, J06.03+)

Table 46 Status Key 2 Values: Unsuccessful Completion—Permanent Error Condition
File Exception ConditionI-O Status Code
A permanent error exists and no further information is available concerning the
input-output operation.
“30”
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.
“34”
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.
“35”
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.
“37”
A permanent error exists because an OPEN statement is attempted on a file previously
closed with lock.
“38”
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.
“39”
Table 47 Status Key 2 Values: Unsuccessful Completion—Logic Error Condition
File Exception ConditionI-O Status Code
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.
“41”
A CLOSE, LOCKFILE, or UNLOCKFILE statement is attempted for a file not in the
open mode.
“42”
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.
“43”
A boundary violation exists for one of these reasons:“44”
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.
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:
“46”
The preceding START statement was unsuccessful.
The preceding READ statement was unsuccessful but did not end at an at-end
condition.
The execution of a READ or START statement is attempted on a file not open in the
Input or I-O mode.
“47”
The execution of a WRITE statement is attempted on a file not open in the I-O, Output,
or Extend mode.
“48”
The execution of a DELETE or REWRITE statement is attempted on a file not open in
the I-O mode.
“49”
Table 48 Status Key 2 Values: Unsuccessful Completion—Conditions Defined by HP
File Exception ConditionI-O Status Code
A Logic Error has occurred; it is not one of those defined under the “4x ” codes, and
no recovery is possible.
“90”
An I-O Error from which recovery might be possible has occurred.“91”
250 Procedure Division