In reply to Doss.

The quickest and simplest way to make sure your datasets are equal (I assume that is what you mean by "to do validation between 2 datasets") is to use PROC COMPARE, e.g.

proc compare base=DATASET1 compare=DATASET2;
run;