05-15-2014 11:07 AM
If I have 10 sas datasets in folder A and 10 sas datasets in folder B, can I compare the two folders, matching the datasets by their name, or do i need to write 10 different proc compare statements, one for each data set?
05-15-2014 11:24 AM
Have a look at the macro documentation. Also you could use a datastep and call execute. There are many examples on here on either style.
proc compare base=&file. comp=file out=&comp_file.;
05-15-2014 03:35 PM
If there is something specific you are trying to determine it might be time to ask for help with the specific desired comparisons. Since Proc Compare kind of expects sets to be sorted in the same order to get many of the more interesting results ...