Hi,
I have 3 greenplum tables (1.2 million recs,100+ numeric fields) each and then joined together with some small sas tables for lookup and then grouped by id. I have to run this process every month and from time to time I am able to process it successfully. But recently I have been hitting a sort execution failure when processing the join. MEMSIZE is already set to 8G(max) ever since. I have playing around with sortsize 1G, 2G up to 4G and this chunk still fails.
In terms of disk space of SAS server, we still have around 60gb in space. So I believe this shouldn't be much of an issue.
Greatly appreciate any advise on how to address this problem.
Thanks!
Do you join in PROC SQL or with a DATA step? If SQL, try sorting with PROC SORT and doing a DATA step MERGE.
Try using tagsort option in the sort statement.
What is the sort error message? Sorts can fail for a variety of reasons.
Be careful, it is not MEMSIZE that matters here, it is REALMEMSIZE: you do not normally want your sort runs to use paging.
Here is how these options interact:
Figure taken from High-Performance SAS Coding: Polychrome: Christian Graffeuille: 9781514362310: Amazon.com: Books
You can also use the details option to have more insight into what your proc sort is doing.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Select SAS Training centers are offering in-person courses. View upcoming courses for: