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.
Answer Posted / 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 View All Answers
Explain the configuration section of a cobol program with examples of syntax.
In COBOL, what is the different between index and subscript?
How to remove 2 duplicate records and copy only one using job control language?
What are declaratives and what are their uses in cobol?
What are the rules of the move verb?
When is inspect verb is used in cobol?
) how do u code after getting data?
What is amode(31)
What is the difference between Global and External Variables?
How do you define a variable of comp-1 and comp-2?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
Name some of the examples of COBOl 11?
Mention the guidelines to write a structured cobol program?
What is the compute verb? How is it used?
What is the difference between perform … with test after and perform … with test before?