Reputation: 69
How to compare two files in Cobol, both files having duplicate records. can any1 give pseudo code. The code has to work in duplicate record condition
Upvotes: 2
Views: 3046
Reputation: 21950
I'm not sure exactly what you're after (e.g. what you are hoping to report out of the comparison) but one idea might be to proceed as follows:
On EOF on one file you'll need to check for trailing unique records in the remaining file which may or may not be at EOF.
Upvotes: 2