- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I'm wondering if there exists any difference between NODUPKEY and NODUPRECS options ? In my view, they seem totally the same with a BY statement.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
go through this article, it explains everything step by step with examples.
https://support.sas.com/resources/papers/proceedings/proceedings/sugi30/037-30.pdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
NODUP will delete duplicated observations (records that are identical to each other) while NODUPKEY will delete those observations that have duplicate BY values (the sort BY variables that you name in PROC SORT).
Links to SAS papers can be found here
https://communities.sas.com/t5/SAS-Programming/Difference-between-NOdup-and-NoDupkey/m-p/29490#M6614...
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
go through this article, it explains everything step by step with examples.
https://support.sas.com/resources/papers/proceedings/proceedings/sugi30/037-30.pdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
If you've read the paper, there are some gotcha's about it that often caught people, so they changed the functionality.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
In addition to Reeza, another person from SAS Support also said that NODUPRECS has been removed from the most recent documentation (9.4) because it works in an unexpected/unreliable way.
Instead of NODUPRECS, the current suggestion is to use NODUPKEY and to sort BY _ALL_