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?
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.