If you have more than one name with the maximum weight what would the output look like?
This should get one record per date group:
proc sort data=have;
by date group descending weight;
run;
data want ;
set have;
by date group;
if first.group;
run;
SAS Innovate 2025: Register Today!
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.