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
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
What is the difference between Call and a Link?
What rules are to be followed while using the corresponding options?
Why occurs cannot be used in 01 level in COBOL?
What is an in line perform? When would you use it? Anything else you wish to say about it.
What is cobol?
How you can characterize tables in cobol?
What is difference between static and dynamic call in cobol?
What is the difference between PIC 9.99 and 9v99 in COBOL?
What is length is cobol?
Give some examples of command terminators?
Name the sections present in data division.
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there
What are 77 levels used for?