BookmarkSubscribeRSS Feed
Babloo
Rhodochrosite | Level 12

When I tried to create chart in EG 5.1, I got the error as follows. My data has only only 4 rows and 4 columns as well.

ERROR: Unable to allocate sufficient memory. At least 469K bytes were requested, but only 45K were available. You must either increase the amount of memory

       available, or approach the problem differently.

ERROR: Driver SASGDGIF will not load.

ERROR: Device was not specified.

Can some suggest the workaround to increase the amount of memory ?

14 REPLIES 14
Babloo
Rhodochrosite | Level 12

Any possibilities to add the below code in EG (likely in tools->options->??) once and use the same for all my sessions instead of adding this everytime while creating charts?

options maxmemquery=1M;

Babloo
Rhodochrosite | Level 12

I added the code in Tools - Options ->SAS Programs->submit SAS programs when server is connected. But it is throwing me an error as I got earlier.

Babloo
Rhodochrosite | Level 12

Yes, It did worked when I added in code.

Kurt_Bremser
Super User

Once you have established a server connection, look in the server intialization log (rightclick on the server in the server list, Properties, Software) if the statement is executed.

Also make sure that you have no contrary statement in the custom code to be executed before tasks and codes.

Babloo
Rhodochrosite | Level 12

May I request you to elaborate your reply. I don't know to find the server list in SAS EG. My SAS was installed in Cygwin enviornment.

Babloo
Rhodochrosite | Level 12

I checked the server initialization log and there is no evidence that my statement in 'Tools - Options ->SAS Programs->submit SAS programs when server is connected' is exceuted.

Kurt_Bremser
Super User

After writing the code in the window, did you activate the option?

I put a simple %put "Killroy was here"; in there and immediately got in on my next new server session.

Babloo
Rhodochrosite | Level 12

I didn't activate either. So do you want me to reconnect my session after saving my code to activate my option?

Kurt_Bremser
Super User

You have to make sure that there is a tickmark next to "submit SAS programs when server is connected", and, after saving your changes, you need to terminate the server connection and restart it. Nest time you start your EG and connect to the server, the code will be executed automatically.

LeRoyBessler
Obsidian | Level 7

Please show us the data, and describe what kind of pie chart you want.

I'd be interested in seeing what kind of request caused this problem.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 14 replies
  • 4331 views
  • 7 likes
  • 3 in conversation