We have two files. and we want to write the matching records from both the files to a third file.There can be duplicate records in both the input files.

Showing Answers 1 - 4 of 4 Answers

Sree

  • Feb 2nd, 2007
 

sort the two files in assecding order.. with maching sequence take one file as master file and read the master file first and read the other file for matching compare the maching value
if machval1 > machval2
read next of machfile2
if machval1 < machfval2
read next of Machfile1
if machval2 = matchval2
write into 3 fileread next of both file1, file2 and reapeat the para again..

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions