TSO-ISPF JCL COBOL VSAM DB2 CICS IMS-DB Tools Articles Forum Quiz Interview Q&A

VSAM - File Status Codes


Listed below some of the important VSAM file status codes with their description which will help you to resolve the issues.

File StatusDescription
00Operation completed successfully
02Non-Unique Alternate Index duplicate key found
04Invalid fixed length record
05While performing OPEN File and file is not present
08Logical error in the program
10End of File encountered
13File Not Found
14Attempted to READ a relative record outside file boundary
16File access issue
20Invalid Key for VSAM KSDS or RRDS
21Sequence error while performing WRITE or changing key on REWRITE
22Primary duplicate Key found
23Record not found or File not found
24Key outside boundary of file
28File space issue
30Permanent I/O Error
34Record outside file boundary
35While performing OPEN File and file is not present
37OPEN file with wrong mode
38Tried to OPEN a Locked file
39OPEN failed because of conflicting file attributes
41Tried to OPEN a file that is already open
42Tried to CLOSE a file that is not OPEN
43Tried to REWRITE without READing a record first
44Tried to REWRITE a record of a different length
46Tried to READ beyond End-of-file
47Tried to READ from a file that was not opened I-O or INPUT
48Tried to WRITE to a file that was not opened I-O or OUTPUT
49Tried to DELETE or REWRITE to a file that was not opened I-O
90Unsuccessful OPEN, READ, WRITE or CLOSE operation
91Password or authorization failed
92Logic Error
93Resources are not available
94Sequential record unavailable or concurrent OPEN error
95File Information invalid or incomplete
96No DD statement for the file
97OPEN successful and file integrity verified
98File is Locked - OPEN failed
99Record Locked - Record access failed

If you have any doubts or queries related to this chapter, get them clarified from our Mainframe experts on ibmmainframer Community!

Are you looking for Job Change? Job Portal