BookmarkSubscribeRSS Feed
milts
Pyrite | Level 9

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!

5 REPLIES 5
MadhuKorni
Quartz | Level 8

Try using tagsort option in the sort statement.

SASKiwi
PROC Star

What is the sort error message? Sorts can fail for a variety of reasons.

ChrisNZ
Tourmaline | Level 20

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:

Untitled.png

Figure taken from High-Performance SAS Coding: Polychrome: Christian Graffeuille: 9781514362310: Amazon.com: Books

ChrisNZ
Tourmaline | Level 20

You can also use the details option to have more insight into what your proc sort is doing.

sas-innovate-2024.png

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.

 

Register now!

What is Bayesian Analysis?

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 5 replies
  • 2957 views
  • 0 likes
  • 5 in conversation