There are two flat files one having 10 records and other
having 5 records. write a cobol pgm to find the duplicate
records(matching records)from both files.



There are two flat files one having 10 records and other having 5 records. write a cobol pgm to fi..

Answer / talluri

perform 10 times
read file1
perform 5 times
read file2
if file1rec = file2rec
write file1rec to file3rec
end-if
end perform
end perform.

Is This Answer Correct ?    5 Yes 1 No

Post New Answer

More COBOL Interview Questions

What is SDSF?

3 Answers  


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

5 Answers   CTS,


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

0 Answers  


what happens if we dont close cursor in db2-cobol pgm?

6 Answers  


What is the difference between a DYNAMIC and STATIC call in COBOL?

2 Answers  






what are the steps to sort in a cobol program?

2 Answers   Patni,


What are options have been removed in COBOL 11?

1 Answers  


consider the following FD FILE-1 01 REC-1 PIC X(80) ...... WORKING-STORAGE SECTION 01 W-REC PIC X(90) ........ PROCEDURE DIVISION FIRST-PARA ....... READ FILE-1 INTO W-REC AT END MOVE 1 TO EOF-FLAG which of the following is true with respect to the above? a.REC-1 will contain nothing and W-REC will contain the contains of the record read b.REC-1 and W-REC contain the same data c.syntex is invalid and error will occur d.REC-1 and W-REC must be of same size

1 Answers   TCS,


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,


What is difference between com and com3? Eg. s9(4) so what is the memory it will occupy com and com3.

2 Answers  


BY seeing a program how can we say that it is static call or dynamic call

5 Answers   CGI,


01 var1 pic x(10) 01 var2 redefines var1 pic 9(10). then in procedure division move 'abcde' to var1 then waht is the value of var1 and var2

9 Answers   HSBC,


Categories