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
how do you reference the printer file formats from cobol programs
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
Explain how to differentiate call by context by comparing it to other calls?
How do you differentiate between cobol and cobol-ii?
What is the difference between external and global variables in COBOL?
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
What is the LINKAGE SECTION used in COBOL?
How do you reference the fixed block file formats from cobol programs
Describe the cobol database components?
How you can read the file from bottom?
HOw can I get the negative sign while deduct high value from low value
What is the difference between a binary search and a sequential search what are the pertinent cobol?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
input 1 input2 ouput1 output2 output 3 1 re 300 1 re 200 1 re 300 3 rc 500 1 re 200 2 rr 400 1 re 300 2 rr 400 1 rc 400 3 rc 500 1 rc 400 2 rr 700 2 rr 700 5 tt 900 5 tt 900 2 inputs r in flat file and output 1 is matched records,ouptput2 is unmatched of input1,output3 is unmatched of input2! how vl u get the output files using sequential order and to check with each and every records! let me know the procedure division ?