I want ALL ERROR codes in VSAM
Answer Posted / shinoy sansilavose
Error codes in VSAM are the VSAM file status codes.
Following are some VSAM file status codes I know,
File Status Cause
00 Operation completed successfully
02 Duplicate Key was found
04 Invalid fixed length record
05 The file was created when opened -
Successful Completion
07 CLOSE with REEL or NO REWIND executed for
non tape dataset.
10 End of File encountered
14 Attempted to READ a relative record
outside file boundary
21 Invalid Key - Sequence error
22 Invalid Key - Duplicate Key found
23 Invalid key - No record found
24 Invalid Key - key outside boundary of file.
30 Permanent I/O Error
34 Permanent I/O Error - Record outside file
boundary
35 OPEN, but file not found
37 OPEN with wrong mode
38 Tried to OPEN a LOCKed file
39 OPEN failed, 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 Resource was not available (may be
allocated to CICS or another user)
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.
| Is This Answer Correct ? | 21 Yes | 4 No |
Post New Answer View All Answers
What do you understand by psb and acb?
how do you reference the variable unblock file formats from cobol programs
Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.
What guidelines should be followed to write a structured cobol prgm?
What is the difference between goback, stop run and exit program in cobol?
Why did you choose to work with ibm mainframe cobol programming?
How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?
Difference between cobol and cobol-ii?
For rewrite, why is it mandatory that file needs to be opened?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
Which division and paragraphs are mandatory for a COBOL program?
What are all the divisions of a COBOL program?
What is an in line perform? When would you use it? Anything else you wish to say about it.
) what is the difference between AID and HANDLE AID?
What is amode(24)?