Reputation: 939
I want to identify any duplicates between rows of different groups and delete some observation.
My example :
data temp;
input siren $ imput $;
cards;
x one
x one
x two
y two
y two
z three
z three
z four
;
run;
The output I want :
siren imput
x one
x one
y two
y two
z three
z three
Many thanks in advance !
Upvotes: 0
Views: 94
Reputation: 9109
You can use PROC SORT for that.
data temp;
input siren $ imput $;
cards;
x one
x one
x two
y two
y two
z three
z three
z four
;
proc print;
run;
proc sort data=temp out=dups nouniquekey;
by siren imput;
run;
proc print;
run;
Upvotes: 1