Here is how to do in hash. data have1;
input names $ birthdates:date9. tests $;
format birthdates date9.;
cards;
AA 09Jan2010 X
BB 10Jan2010 Y
CC 11Jan2010 X
DD 12Jan2010 X
;
run;
data have2;
input names $ birthdates:date9. tests $;
format birthdates date9.;
cards;
AA 09Jan2010 X
BB 10Jan2010 Y
;
run;
data want;
set have1;
if _n_=1 then do;
declare hash rc (dataset: 'work.have2');
rc.DefineKey ( 'names','birthdates','tests' ) ;
rc.DefineDone () ;
end;
if rc.find() =0 then delete;
run;
... View more