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;
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…