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 are the different data types available in COBOL?

4 Answers  


what will happen if i give program name and member name as different? program runs successful or w'll abend?

5 Answers   CTS,


in cobol main pgm is calling sub pgm but sub pgm does not exists , what abend i get if submit the job?

2 Answers   HSBC,


01 a pic 9(9v99) 01 b pic 9(9.99) wht will be the stored vales in both cases

6 Answers   Patni,


What R 2 of the common forms of the EVALUATE STATEMENT ?

1 Answers   Cap Gemini,






I have dataset DS1 which has records say 1 2 3 4 5 ... ... etc And also I have second dataset DS2 whcih has records 1 3 4 5 6 8 .. ... Both the files are sorted and now I want to compare these files and write it into the third files if the records are matching.

4 Answers   FIS, Wipro,


what is the size of W-REC in the following 01 W-REC 05 A PIC 9(4)V99 05 B READLINES A 10 C PIC XX 10 D PIC S9(4) 05 E OCCURS 7 PIC ZZ.ZZ 05 F OCCURS 5 10 G PIC ZZ.ZZZ99 10 H OCCURS 3 15 J PIC 9(3) 15 K PIC V99

2 Answers   TCS,


) how do u code after getting data?

0 Answers   IBM,


which is better either static call or dynamic call? and why?

5 Answers   HCL,


how the control comes back from subprogram to mainprogram

3 Answers   IBM,


Can JUSTIFIED be used for all the data types?

3 Answers  


how would find total records in files using seqientional

1 Answers   HSBC,


Categories