BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
d6k5d3
Pyrite | Level 9

I know if I code like:

 

proc sort data=zzz nodupkey;

by aa cc; run;

 

it will remove duplicate entries which have identical values in aa & cc. How can I see, instead of removing, the duplicates which got removed?

 

Much thanks.

 

Regards.

1 ACCEPTED SOLUTION

Accepted Solutions
r_behata
Barite | Level 11
proc sort data=zzz nodupkey dupout= xyz;
by aa cc; 
run;

View solution in original post

5 REPLIES 5
d6k5d3
Pyrite | Level 9
Sorry. I do not get how to use this. Where can I plug this in my code above?
r_behata
Barite | Level 11
proc sort data=zzz nodupkey dupout= xyz;
by aa cc; 
run;
novinosrin
Tourmaline | Level 20

Hi @d6k5d3 While dupout and such options offer pretty straight forward solutions, I'd recommend to get intuitive knowledge on by group processing in SAS, SQL, Proc freq, and in general counting techniques. A grasp of that will make you comfortable. The idea is to differentiate unique records, unique keys etc. The more you dig, you will venture into other concepts such as indexes and beyond or in other words one understanding leads to the next. Have fun!

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 5 replies
  • 4994 views
  • 3 likes
  • 5 in conversation