0% found this document useful (0 votes)
26 views

File Status Codes

The document lists status codes and explanations for various file errors that can occur. Some errors include duplicate key errors, invalid read or write attempts, record not found errors, and I/O errors.

Uploaded by

mrfkohli183
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

File Status Codes

The document lists status codes and explanations for various file errors that can occur. Some errors include duplicate key errors, invalid read or write attempts, record not found errors, and I/O errors.

Uploaded by

mrfkohli183
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

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

statement for that file, or the ascending


requirements for successive record key values
were violated.
An attempt was made to write a record that would
A

create a duplicate key in a relative file; or an


attempt was made to write or rewrite a record that
M

would create a duplicate prime record key or a


22 DUPLICATE KEY
duplicate alternate record key without the
DUPLICATES phrase in an indexed file. This key
value applies to an indexed file in which the
M

alternate key has been declared 'UNIQUE'.


An attempt was made to randomly access a
record that does not exist in the file, or a START
IB

23 RECORD NOT FOUND


or random READ statement was attempted on an
optional input file that was not present.
An attempt was made to write beyond the
externally defined boundaries of a relative or
NO MORE SPACE ALLOCATED TO indexed file. Or, a sequential WRITE statement
24 FILE. WRITING BEYOND THE was attempted for a relative file and the number
ALLOCATION OF THE FILE. of significant digits in the relative record number
was larger than the size of the relative key data
item described for the file.
30 UNCORRECTABLE I/O ERROR. No further information
A permanent error exists because of a boundary
AN ATTEMPT WAS MADE TO WRITE
violation; an attempt was made to write beyond
34 BEYOND THE BOUNDARY OF THE
the externally-defined boundaries of a sequential
FILE.
file.
ATEEMPTING TO OPEN AN EMPTY
An OPEN statement with the INPUT, I-O, or
FILE IN INPUT OR I/O MODE. DD
35 EXTEND phrase was attempted on a non-
NAME IS MISSING OR WRONGLY
optional file that was not present.
GIVEN.

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

RECORD IS INCONSISTENT WITH


40 THE DESCRIPTION OF THE N/A
RECORD THAT HAS BEEN READ
A

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

mode, the last input-output statement executed


for the associated file prior to the execution of a
REWRITE statement was not a successfully
A READ DID NOT PRECEDE
IB

executed READ statement. For relative and


43 EXECUTION OF CURRENT
indexed files in the sequential access mode, the
REWRITE COMMAND.
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.
A boundary violation exists because an attempt
A BOUNADRY VIOLATION DUE TO
was made to rewrite a record to a file and the
44 ATTEMPT TO WRITE A RECORD OF
record was not the same size as the record being
IMPROPER LENGTH.
replaced, or an attempt was made to write or
rewrite a record that was larger than the largest
or smaller than the smallest record allowed by the
RECORD IS VARYING clause of the associated
file-name.
A sequential READ statement was attempted on
a file open in the input or I-O mode and no valid
next record had been established because:
1. The preceding START statement was
ATTEMPT TO READ THE NEXT unsuccessful,
46

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

NOT ENOUGH VIRTUAL STORAGE


93 Resource not available.
FOR VSAM TASK.
NO CURRENT POINTER FOR For VSAM with CMPR2 compiler-option only:No
94
SEQUENTIAL PROCESSING. file position indicator for sequential request.
A

For VSAM only: Invalid or incomplete file


95 CONFLICTING ATTRIBUTES.
information.
M

NO CORRESPONDING DD For VSAM only: No DD statement specified for


96
STATEMENT FOR THE FILE. this file.
FILE NOT CLOSED BY PREVIOUS For VSAM only: OPEN statement execution
M

97
JOB. successful: File integrity verified.
IB

You might also like