VSAM – File Status

While working with VSAM datasets you may encounter abends. Following are the common file status codes with their description which will help you to resolve the issues −

CodeDescription
00Operation completed successfully
02Non-Unique Alternate Index duplicate key found
04Invalid fixed length record
05While performing OPEN File and file is not present
10End of File encountered
14Attempted to READ a relative record outside file boundary
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
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
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

Leave a Reply