I want ALL ERROR codes in VSAM

Answers were Sorted based on User's Feedback



I want ALL ERROR codes in VSAM..

Answer / 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

I want ALL ERROR codes in VSAM..

Answer / shailendra

02 is for alternate duplicate key found
22 is for primary duplicate key found

Is This Answer Correct ?    17 Yes 1 No

I want ALL ERROR codes in VSAM..

Answer / richard barnard

20 is for an invalid key

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

In file1 have 80 records are like d1,d2,d3......D80. File2 have 1000records are like a1d1,a1d2,a3d3.....Etc. I want matching records in file3 ? Plse tell me the matching logic???I want answer only in cobol ?Not using any tool or jcl?

1 Answers   CSC,


i need a program by giving input as a abcd in any randem order but i need a output as 1234 related to abcd. i.e,. a for 1,b=2,c.....etc..

5 Answers   IBM,


soc-7 is a bad data,invalid data. when ever we are moving the alphabets in the position of numeric then we got this abend. so my question is if o1 ws-data pic 9(1) value passing the alphabet some x. then we got soc-7 or not? i want clarification ?

7 Answers   CitiGroup, IBM,


What is the linkage section?

4 Answers  


If my program receives input feed from program in other system.. if the receiving field size is less than the sending field.. what abend will be happening.

1 Answers   HCL,






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

0 Answers   IBM,


How is sign stored in a comp-3 field?

7 Answers  


What is the difference between a binary search and a sequential search what are the pertinent cobol?

0 Answers  


Can we put move statement in COBOL copybook

3 Answers   Global Logic,


Write some characteristics of cobol as means of business language.

0 Answers  


What is the difference between a DYNAMIC and STATIC call in COBOL?

2 Answers  


where will u code file status ?

2 Answers   TCS,


Categories