BookmarkSubscribeRSS Feed
amity21
Fluorite | Level 6

Hi,

 

So I am looking for a way to put a maximum size limit on my SAS EG so that if code ever loops, the project/query stops with an error (mentioning excess size hopefully). 

 

I saw another article where someone has this as an error when their size went over 5MB and they turned off project logs, but I don't see an option to actually set it up with size.

 

I use SAS EG7.1 on a corporate network which I believe is connected to a remote server.

They send an automatic email if the maximum work library size has exceeded and I have asked them as well if this is a possible solution available on the remote server side. 

 

Any help is greatly appreciated. 

4 REPLIES 4
Sajid01
Meteorite | Level 14

The size of 5 MB mentioned is about SAS logs. There are ways and means to overcome this.
What size you want to limit?

Need clarity on this.

SASKiwi
PROC Star

If your code loops then it is good practice to set upper limits so it cannot go beyond these. Code does not loop unless you have logic to cause it. It would be helpful if you posted an example of the type of looping you have.

amity21
Fluorite | Level 6

Applying ab observation limit will work, but most looping happens when I overlook something. For example, doing a join of two tables creating a huge amount of outcomes.
If there is a generic size I can put on my work library as when it goes over 50GB, crash all programs.

SASKiwi
PROC Star

Setting individual space limits on WORK libraries is possible using OS commands like ulimit if your are running on Unix. What OS do your SAS servers run on?

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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
  • 4 replies
  • 2367 views
  • 0 likes
  • 3 in conversation