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 −
| code | description |
|---|---|
| 00 | operation completed successfully |
| 02 | non-unique alternate index duplicate key found |
| 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 vsam ksds or rrds |
| 21 | sequence error while performing write or changing key on rewrite |
| 22 | primary duplicate key found |
| 23 | record not found or file not found |
| 24 | key outside boundary of file |
| 30 | permanent i/o error |
| 34 | record outside file boundary |
| 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 |
| 91 | password or authorization failed |
| 92 | logic error |
| 93 | resources are not available |
| 94 | sequential record unavailable or concurrent open error |
| 95 | file information invalid or incomplete |
| 96 | no dd statement for the file |
| 97 | open successful and file integrity verified |
| 98 | file is locked - open failed |
| 99 | record locked - record access failed |