Hello team,
What are the methods to dedup in SAS? Can we dedup by proc sort nodup key?
Regards,
blueblue
> Can we dedup by proc sort nodup key?
That's probably the easiest method.
Other methods include
proc sql select unique
and loading a hash table.
proc sort is almost always the appropriate tool for deduping..
> Can we dedup by proc sort nodup key?
That's probably the easiest method.
Other methods include
proc sql select unique
and loading a hash table.
proc sort is almost always the appropriate tool for deduping..
@GN0001 wrote:
Hello team,
Can we dedup by proc sort nodup key?
Maxim 4.
Try it and see for yourself.
Why don't you try it anyway?
proc sort data=sashelp.class out=class nodupkey;
by age;
run;
data class;
set sashelp.class sashelp.class;
run;
proc sort data=class nodup;
by age name;
run;
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.