Here is another variation.. proc sort data=rawdata1; by zip_code address name; run; data differentNames_SameAddress; set rawdata1; /*(my .csv which has name, address and zip)*/ by zip_code address name; /* select records with more than one address */ if not (fist.address and and last.address) then do; ; output differentNames_SameAddress; end; run;
... View more