File Status Codes
File Status Codes
File
Result Explanation
Status
VALID DUPLICATE ALTERNATE KEY
2 N/A
DETECTED.
ATTEMPT TO OPEN A FILE THAT IS
5 N/A
NOT AVAILABLE.
m
INCONSISTENCY IN STORAGE
7 N/A
DEVICE.
A sequential READ statement was attempted and
.co
no next logical record existed in the file because
10 END OF FILE REACHED the end of the file had been reached, or the first
READ was attempted on an optional input file
that was not present.
ES
A sequential READ statement was attempted for
INVALID READ ATTEMPT ON
a relative file and the number of significant digits
RELATIVE FILE. THE GIVEN RRN
14 in the relative record number was larger than the
NUMBER IS LARGER THAN THE
size of the relative key data item described for the
M
RELATIVE KEY.
file.
A READ WAS ATTEMPTED WHEN
16 N/A
AT THE END CONDITION IS TRUE.
A
20 INVALID KEY. N/A
A sequence error exists for a sequentially
FR
accessed indexed file. The prime record key
value has been changed by the program between
the successful execution of a READ statement
21 RECORD OUT OF SEQUENCE
and the execution of the next REWRITE
IN
m
An OPEN statement was attempted on a file that
would not support the open mode specified in the
OPEN statement. Possible violations are:
.co
1. The EXTEND or OUTPUT phrase was
OPEN WAS ATTEMPTED ON A FILE specified but the file would not support write
37 THAT WILL NOT SUPPORT THE operations.
OPEN MODE SPECIFIED. 2. The I-O phrase was specified but the file would
ES
not support the input and output operations
permitted.
3. The INPUT phrase was specified but the file
would not support read operations.
M
ATTEMPT TO OPEN A FILE THAT An OPEN statement was attempted on a file
37
HAS BEEN CLOSED WITH LOCK previously closed with lock.
The OPEN statement was unsuccessful because
A
a conflict was detected between the fixed file
ERROR DURING attributes and the attributes specified for that file
FR
OPENING.INCONSISTENCY in the program. These attributes include the
39
BETWEEN FILE DESC AND ACTUAL organization of the file (sequential, relative, or
FILE indexed), the prime record key, the alternate
record keys, the code set, the maximum record
size, and the record type (fixed or variable).
IN
ATTEMPT TO OPEN A FILE WHICH An OPEN statement was attempted for a file in
41
IS ALREADY OPENED the open mode.
M
ATTEMPT TO CLOSE A FILE THAT A CLOSE statement was attempted for a file not
42
IS NOT OPEN. in the open mode.
For a mass storage file in the sequential access
M
m
NONEXISTENT RECORD. or 2.The preceding READ statement was
unsuccessful but did not cause an at end
condition,
.co
or 3. The preceding READ statement caused an
at end condition.
ATTEMPT TO READ FROM A FILE The execution of a READ statement was
47 WHICH IS NOT OPEN IN INPUT OR attempted on a file not open in the input or I-O
ES
I-O MODE. mode.
ATTEMPT TO WRITE ON A FILE The execution of a WRITE statement was
48 NOT OPEN IN OUTPUT OR EXTEND attempted on a file not open in the I-O, output, or
MODE. extend mode.
M
The execution of a DELETE or REWRITE
ATTEMPT TO WRITE ON A FILE
49 statement was attempted on a file not open in the
NOT OPEN IN I-O MODE.
I-O mode.
A
88 VSAM START FAILURE. N/A
SOME TYPE OF VSAM LOGIC
FR
90 No further information.
ERROR.
91 PASSWORD FAILURE. For VSAM only: Password failure.
92 DOING IN WRONG MODE. Logic error.
IN
97
JOB. successful: File integrity verified.
IB