Reputation: 1041
I have a large dataset of 1.2crore rows, which is taking around 30 min in sorting using usual SAS proc sort. Is there any faster algorithm/option in sas? Kuber
Upvotes: 0
Views: 6769
Reputation: 8513
Without more details on how you are using the sorted dataset and what fields and lengths make up your dataset here's a few things you can try:
tagsort
option in proc sort. This is useful when the dataset is wide.But to answer your question, there is no faster sort procedure in sas then proc sort
. According to the below PDF: The SAS® sort routine is of order O(NlogN), which is as
fast as a comparison sort can be.
If you are working at a site that has syncsort licensed then this can speed it up, but this is usually enabled by default.
http://www2.sas.com/proceedings/sugi26/p121-26.pdf
Upvotes: 3
Reputation: 28391
If the reason you need to sort your data set is to merge it with another data set, you might look at doing your merge/lookup using a HASH object. Then you might not need to sort it.
Upvotes: 0