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.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.