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


Please Help Members By Posting Answers For Below Questions

how do you reference the printer file formats from cobol programs

648


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

701


Explain how to differentiate call by context by comparing it to other calls?

679


How do you differentiate between cobol and cobol-ii?

646


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

804






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?

689


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

696


What is the LINKAGE SECTION used in COBOL?

885


How do you reference the fixed block file formats from cobol programs

695


Describe the cobol database components?

672


How you can read the file from bottom?

654


HOw can I get the negative sign while deduct high value from low value

1779


What is the difference between a binary search and a sequential search what are the pertinent cobol?

725


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

726


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 ?

1862