Difference between file status codes 02 and 22.... since both are for duplicate key detection.



Difference between file status codes 02 and 22.... since both are for duplicate key detection...

Answer / azharuddinsyed

Yes, both are "DUPLICATE KEY" condition. But, the differences are

02 is Duplicate key condition during read/write/rewrite of indexed files only
where as
22 is duplicate key condition during write/rewrite of indexed files(KSDS) or relative files(RRDS)

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

What rules are followed by the search verb.

0 Answers  


i have a variable block which is used in my cobol program as input file having records of 4080 after compilation while runing the program im getiing file attribut mismatch and it is saying tht the record length of the file is 4084 can any one knw the answer how to reslove it ?

2 Answers  


I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......

4 Answers   Accenture,


How do you reference the fixed block file formats from cobol programs

0 Answers  


What are all the divisions of a COBOL program?

0 Answers  


What is rmode(24)

0 Answers  


hi friends,can any one post the ibm mainframe inteqview questions for 1year exp candidate,for itc infotech interview?. have any body attended for this in the past?...

1 Answers   ITC Infotech,


what are the error codes in cobol, db2, cics, vsam , and jcl

2 Answers   TetraSoft,


I encountered an error when I move spaces to a numeric field?What should I do to move spaces on that field?help please.

9 Answers  


What are the different data types in cobol?

0 Answers  


What are some examples of command terminators?

1 Answers  


How can I tell if a module is being called DYNAMICALLY or STATICALLY?

3 Answers   CTS,


Categories