Let's understand Mainframe
Home Tutorials Interview Q&A Quiz Mainframe Memes Contact us About us

Module 5: VSAM Status codes


VSAM Status codes

When we work with VSAM datasets we are most likely to encounter abends. Below listed are the common file status code with their meaning which can help you fix your abends-

Code Description
00 Successful Completion
02 A duplicate Key condition exists, this is alright since this condition exists only when DUPLICATES has been specified for an AIX
04 Invalid fixed length record
05 While performing OPEN File and file is not present
10 End of File encountered
14 Attempted to READ a relative record outside file boundary
20 Invalid Key for KSDS or RRDS
21 Out of sequence condition during sequential insertion
22 A duplicate key condition exists, no duplicates are allowed
23 No record found
24 KSDS/RRDS boundary violation, SHR (4 4)
30 Input/Output physical error
34 ESDS boundary violation, SHR (4 4)
35 While performing OPEN File and file is not present
37 OPEN file with wrong mode
38 Tried to OPEN a Locked file
39 OPEN failed because of conflicting file attributes.
41 Tried to OPEN a file that is already open
42 Tried to CLOSE a file that is not OPEN
43 Tried to REWRITE without READing a record first
44 Tried to REWRITE a record of a different length
46 Tried to READ beyond End-of-file
47 Tried to READ from a file that was not opened I-O or INPUT
48 Tried to WRITE to a file that was not opened I-O or OUTPUT
49 Tried to DELETE or REWRITE to a file that was not opened I-O
90 Error condition, catch all if error does not fit category above
91 Password or authorization failed
92 Logical error, usually out of sequence commands, sometimes invalid operation for file type, trying to read from an output file, etc.
93 Resource not available
94 No pointer supplied for sequential operation
95 Invalid/incomplete file information
96 No file identification
97 OPEN successful and file integrity verified
98 File is Locked - OPEN failed
99 Record Locked - Record access failed



Advertisements






© copyright mainframebug.com
Privacy Policy