I want ALL ERROR codes in VSAM
Answers were Sorted based on User's Feedback
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 -
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
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
44 Tried to REWRITE a record of a different
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|
Answer / shailendra
02 is for alternate duplicate key found
22 is for primary duplicate key found
|Is This Answer Correct ?||17 Yes||1 No|
Answer / richard barnard
20 is for an invalid key
|Is This Answer Correct ?||0 Yes||0 No|
a pic s9(4) comp b pic s9(4) comp-3 c ???????????????? d ???????????????? move a to c add a+B giving d. what is ur declaration for c,d?
Hi................... I have records like this aaaa cccc bbbb And i want output like this bbbb cccc aaaa How can it possible ?. Note:Please make sure records are in unsorted order. somebody plzzz help me.
WHAT IS SOC3?HOW IT CAN BE RESOLVED?
when iam reading a flat file which has 100 records through cobol program when iam reading 50th records it gets abends .. so when i run the program again it should read from 50th record .where it got abened ? how it is possible
i declare a Table as OCCURS 2000 TIMES.If the input file has more than 2000 records will the COBOL program fail?
What is COMP SYNC?
hai friends ,i have HSBc exam on this sunday,my platform is Mainframe,i have 1 year exp,pls any one send me placement papers of Hsbc and technical questions on mainframe
Can we move X(9) to 9(9). If yes what are the ways for doing this?
How do u write test cases?
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?
give the examples for strings and unstrings in cobol
Consider the below example call a-test1. -- -- -- a-test1. if a=b perform a-test through a-exit next sentence else if b=c perform c-test through c-exit. if a=d perform d-test through d-exit. a-test. -- -- a-exit. exit. can u tell me what will happen if a=b after looping into a-exit will the control go back to a- test1. will the condition a=d be checked???