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
For rewrite, why is it mandatory that file needs to be opened?
Difference between array and sub-script ?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
Have you used comp and comp-3 in your project? And how?
When is inspect verb is used in cobol?
How do u write test cases?
Write the code implementing the perform … varying.
how to move the records from file to array table. give with code example
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?
What are the various section in data division and briefly explain them.
What is amode(24)?
what is difference between cobol and cobol/400
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue
Differentiate between structured cobol programming and object-oriented cobol programming.