Compare two files and write matching records to a file and unmatched to another

2 posts / 0 new
Last post
Anonymous
Compare two files and write matching records to a file and unmatched to another

I have two files file 1 and file 2 with huge number of records, I want to compare these two files and write the matching records in these files to file3 and unmatching records to file 4.

Can anyone describe the logic of the cobol program to achieve this efficiently?

"; ; ; ;
Offline
Joined: 12/26/2011 - 06:34
2-file match/merge
First - ensure both files are sorted by the "match key". Second - search the web using "2-file match/merge" as the search criteria and follow a link to the "sticky" which contains working code that is in use Many places. Third - download the sample code and compile on your system. Fourth - test and customize for your particulars.
Log in or register to post comments
Sponsored Listing