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

When can the USING phrase be included in the call statement ?

2 Answers  


What do you understand by psb and acb?

0 Answers  


can we read in input the file with a variable length ? please , how ..could you help me ?

3 Answers   EDS,


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

0 Answers  


Hi Guys, I have faced one interview question if I have requirement to add 5 new columns to existing table what are prerequisite do i need to take.

1 Answers  






What is the maximum length of a field you can define using COMP-3 in COBOL?

1 Answers   UGC Corporation,


what is index and how to use two tables using index?

1 Answers  


Why we are using comp and comp-3 in real time projects?

4 Answers   IBM,


How many bytes will be allocated for the following record description entries? 01 REC-A. 05 A PIC S9(4). 05 B PIC XXXBXXX. 05 C PIC ____9.99. 05 D PIC S9(5) COMP-3. 05 E PIC 9(3) COMP.

16 Answers   IBM, TCS,


What is the difference between structured cobol programming and object alternativelyiented cobol?

0 Answers  


can we use variable picture clause as xx.99 in cobol.

3 Answers  


i have two file, each file having : file1 is having 2 fields field1 field2 file2 is having 3 fields field1 field2 field3 my req is to make it one file like: field1 field2 field1 field2 field3 if anyone know please send me syntax, i tried this with DFSORT but could not succeed.

9 Answers   Syntel,


Categories