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

COBOL Snippet: Tell where the control will when the below code execute IF (A=B) CONTINUE ELSE NEXT SENTENCE PERFORM <IMP-STMT> END-IF.

7 Answers   HCL,


How many maximum number of procedures can we write in one COBOL program?

6 Answers  


Explain Restart Logic in Cobol?

1 Answers   L&T, Syntel,


how we rectify soc7 and soc4 errors in project?

1 Answers   Anaxis, TCS,


88 class is used for

5 Answers   CTS, EDS,






how will u retreive value from a table.write it with syntex. 01 ws-table 05 ws-table1 occurs 10 times. 05 ws-table2 occurs 10 times. the above is 2 dimensional array..how will u retrieve 1st element of an array

3 Answers   ADP,


. How do we cast a variable in COBOL

1 Answers   HSBC,


give the examples of strings in cobol

1 Answers   IBM,


State the various causes of s0c1, s0c5 and s0c7.

0 Answers  


The order of precedence of arithmetic operators in an expression can be overridden with the use of (a) [] (b) () (c) {} (d) Any of the above

3 Answers   TCS,


What are the differences between COBOL and COBOL II?

1 Answers   CSC,


There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

0 Answers  


Categories