In what sense? Do you mean a row by row comparison, by certain identifiers, by distinct lists of values? Post some example test data in the form of a datastep:
https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712
And what the output should be like.
All I can say from what you have posted is that there is a procedure called proc compare which is for comparing datasets. Other than that I know nothing of your problem.
... View more