Yeah, that's it. Just a very complicated way of checking for duplicates.
proc sql noprint;
select count(*) into :A from testing;
select count (*) into :B from (select distinct * from testing);
quit;
data _null_;
if &A ne &B then put "not unique";
run;
... View more