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

what is Reentrancy and Quasi-reentrancy?

1 Answers  


i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

0 Answers  


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

0 Answers  


) what is the difference between AID and HANDLE AID?

0 Answers   IBM,


how many times PARA-A is performed : PERFORM PARA-A VARYING TIMES-COUNTER FROM 1 BY 1 UNTIL TIMES-COUNTER >0 PARA-A MOVE P TO Q MOVE H TO TIMES COUNTER a.10 b.1 c.11 d.0

4 Answers   TCS,


What is Static,Dynamic linking ?

2 Answers  


Why occurs can not be used in 01 level ?

2 Answers   TCS,


What is the compute verb? How is it used?

0 Answers  


what is a load module ?

3 Answers   TCS,


can we use go to statement inline-perform?

7 Answers   IBM,


What is the difference between performing a SECTION and a PARAGRAPH?

5 Answers   Accenture, Patni,


wht is the difference between goto and perform stmts

7 Answers   DELL,


Categories