FILE STATUS CODES
It is a two-byte working storage item. The first byte denotes the general category whereas second byte denotes the particular type of error message under that category.
0 | | Successful OPEN/READ/WRITE Operation |
| 0 | Successful completion |
| 2 | Duplicate key was detected which is allowed as per definition of AIX. |
| 4 | Length of record just READ didn’t conform to the fixed length attributes for the file. |
| 5 | Referenced Optional file is not present during OPEN. If open mode is I-O or EXTEND, then file will be created. |
| 7 | Open or Close statement is executed with a phrase that implies a tape file (ex NO REWIND) whereas the file is not in TAPE. |
1 | | When AT END condition fails |
| 0 | Sequential READ is attempted on 1.after the end of file is reached 2.optional file that is not present. |
| 4 | Sequential READ was attempted for a relative file and RRN is larger than the maximum that can be stored in the relative key data item. |
0 | | When INDEX Key fails |
| 1 | Sequence error exists for sequentially accessed index file. |
| 2 | Attempt was made to write a record that would create a duplicate key. |
| 3 | Record not found.(for keyed random access) |
| 4 | Space not found for WRITE |
3 | | Permanent Open error |
| 5 | Opening a non-optional file that was not present. |
| 7 | Open mode is not permitted. |
| 8 | Open issued for a file that was closed previously with lock |
| 9 | File attribute mismatch-Open failed. |
4 | | Logic error in opening/closing/deleting |
| 1 | OPEN a opened file. |
| 2 | CLOSE attempted for not opened file. |
| 3 | IO statement before the current REWRITE/DELETE is not successful. |
| 4 | REWRITE attempt with invalid length |
| 7 | READ file which is not opened in INPUT or I-O mode |
| 8 | WRITE file which is not opened in I-O OUPUT or EXTEND mode |
| 9 | DELETE or REWRITE file which is not opened in I-O mode. |
9 | | Implementation defined |
| 1 | VSAM password error |
| 2 | Logic error |
| 3 | VSAM resource unavailable |
| 6 | No DD statement specified for VSAM file. |
| 7 | File integrity verified for VSAM file. |
No comments:
Post a Comment