BookmarkSubscribeRSS Feed
Paul_NYS
Obsidian | Level 7

Hi Everyone

I keep getting the below error for memory size. After taking a look around, it seems using memsize and fullstimer options might be a good way to resolve the error, once it is determined the memory needed. However, I don't see how to implement these options. It appears you can set it in a data step or proc, but don't see examples.

 

Is anyone familiar with this?

 

Paul

 

"ERROR: Unable to allocate sufficient memory. At least 1521783K bytes were requested, but only 786430K were available. You must either increase the amount of memory available, or approach the problem differently.

 

ERROR: The SAS System stopped processing this step because of insufficient memory."

 

 

3 REPLIES 3
Tim_SAS
Barite | Level 11

I use these options when I run into problems with insufficient memory. FULLSTIMER causes SAS to add memory usage statistics to the log. MEMSIZE changes the amount of memory available to SAS. This is typically a 2-step process. First, I run the problem program with both FULLSTIMER and MEMSIZE MAX and check the log to see how much memory SAS actually needed to run the program. Second, I add OPTIONS MEMSIZE nn to the program, where nn is the amount of memory SAS needed plus a little bit more for "breathing room."

 

You didn't say which O/S you're using, so here's the doc for MEMSIZE and FULLSTIMER for Windows. Both options can be used in a configuration file or at SAS invocation. Here's doc on how to do this on Windows.

 

It may be that your program doesn't complete even when you use MEMSIZE MAX, but solving that program requires more detail about your program.

Paul_NYS
Obsidian | Level 7

I am using a Windows 7 desktop. Where is the configuration file located?

 

Paul

ChrisNZ
Tourmaline | Level 20

As mentioned, FULLSTIMER only gives you information about memory usage, it does not change memory settings.

 

MEMSIZE changes the maximum SAS virtual memory footprint, and must be set at the time SAS starts.

 

Note that some procedures are also affected by the SORTSIZE and SUMSIZE options.

 

Here is a schema taken from the book

 

High Performance SAS Coding

 

https://www.amazon.com/High-Performance-SAS-Coding-Christian-Graffeuille/dp/1512397490

 

that summarises how the memory settings are nested.

 

aaa1.PNG

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 3 replies
  • 2001 views
  • 1 like
  • 3 in conversation