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;
2025 SAS Hackathon: There is still time!
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!