proc sort data=have;
by customerID descending amount;
run;
data want;
set have;
by customerID;
if first.caseID then count=0;
count+1;
if count <= 2;
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!