data dups;
set in_data;
by key_field1 key_field2 ... key_fieldn ;
retain count;
if first.key_fieldn then count=0;
count+1;
if count>1 then output;
run;
Is there an quick way to furthermore check variables except within by group are all the same from Output DUPS dataset?
How would you code that section to include all the variables when first and last is being used?
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
Check out this tutorial series to learn how to build your own steps in SAS Studio.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.