The normal way to do this in SAS is to use FIRST. processing.
data want ;
set have ;
by date ;
if first.date ;
run;
You will need to sort the data first (or have it indexed).
Another work around is to use the NODUPKEY option on PROC SORT.
proc sort data=have out=want nodupkey ;
by date;
run;
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.