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

The hierarchy of the execution of logical operators is (a) NOT AND OR (b) AND OR NOT (c) OR AND NOT (d) OR NOT AND

10 Answers   Huawei, IBM, TCS,


can i use multiple when statements in search & search all ? justify ur answer?

2 Answers  


Is it possible to mutliply a comp variable with an comp-3 variable. Will there be any error if i do it?

3 Answers   IBM, UST,


SUPPOSE I HAVE 60 CHARACTERS STING. IN THAT I WANT FIND OUT HOW MANY TIMES 'A'(ASSUME)WILL REPEATED AND I HAVE TO PASS 'E' IN PLACE OF 'A'ALONG THAT STRING.

2 Answers   Wipro,


What is SDSF?

13 Answers   IBM,






what is scope terminator

2 Answers   IBM,


What are INPUT PROCEDURE and OUTPUT PROCEDURE?

0 Answers  


What is the Importance of GLOBAL clause According to new standards of COBOL?

2 Answers   Infosys,


What is the difference between external and global variables in COBOL?

0 Answers   Winsol Solutions,


How include time & date in the report generation in cobol programing?

2 Answers  


in a indexed file what is procedure for read the records from 12 to 18. please give the code example

2 Answers   L&T,


Why do we use COMP-3 variables for computation, when we know that they are non displayable fields and require additional MOVE to numeric field before we populate it in output Reports?

1 Answers   Accenture,


Categories