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;