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?
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.