data have ;
input name :$1. dateperiod :$6. ;
cards ;
A 200301
A 200901
A 201001
B 200801
B 200901
B 201001
;;;;;
data want ;
set have ;
by name notsorted ;
if last.name ;
run;
proc print;run;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.