data have;
input A B C;
cards;
2 3 5
2 3 5
2 4 5
2 5 4
3 1 2
3 2 1
3 1 2
;
run;
proc sort data=have;
by A B C;
run;
data want;
set have;
by A B C;
if first.C then output;
run;
data have;
input A B C;
cards;
2 3 5
2 3 5
2 4 5
2 5 4
3 1 2
3 2 1
3 1 2
;
run;
proc sort data=have;
by A B C;
run;
data want;
set have;
by A B C;
if first.C then output;
run;
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.