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?
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.