Firstly, I know almost nothing about SAS, and I'm not a programmer, but an accountant, but here it is:
I am trying to compare two datasets to determine the differences between them, so I use the "proc compare" command as follows:
proc compare data=table1 compare=table2 criterion=.01; run;
This works fine, but it is compared by row and order, so if table 2 does not have a row halfway, all entries after this row will be returned as unequal.
How can I ask the comparison to be done based on the variable, so that the proc comparison finds the value associated with the variable X in table 1, and then ensures that the same variable X in table 2 has the same value?
source share