Skip to Content
Custom Search

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

1 reply [Last post]
Anonymous

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?

"; ; ; ;
Sponsored Listing
DikDude
Offline
Joined: 12/26/2011
Posts:
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.

Click the +1 button  below to share it with your friends and colleagues

 

Share this if you liked it!

 

Disclaimer



Who's online

There are currently 0 users and 25 guests online.
Dr. Radut | forum