Desktop productivity for business analysts and programmers

Log File Size

Accepted Solution Solved
Reply
Contributor
Posts: 39
Accepted Solution

Log File Size

Hi,

 

I'm executing some SAS code where my log file is quite large. My job stops and SAS Enterprise Guide gives me a useless error after the log file reaches a certain size. I am able to work around that by using a "proc printto" to create a log file not within SAS Enterprise Guide but on the Linux machine.

 

Is there something I can do to increase the log size in SAS Enterprise Guide? What is the default log size?

 

 

SAS Grid Error Message.jpg

 


Accepted Solutions
Solution
‎11-07-2017 04:08 PM
SAS Super FREQ
Posts: 381

Re: Log File Size

Hi @asimraja,

 

"The server is disconnected" actually indicates that the server session was disconnected, which will happen if a large enough log is generated, such that the server session runs out of memory.  Proc printto is the suggested workaround.

 

Note: SAS 9.4M5 added log-streaming capability (can be turned on via internal "options iomlogautoflush;"), which will stream the log events back to the client as they occur, thus avoiding the buffering of the log events on the server leading to the out of memory condition.

 

Casey

View solution in original post


All Replies
Super Contributor
Posts: 292

Re: Log File Size

Have no idea. Generally it seem like people redirect the logs away from E Guide, like you did, rather than increasing the log size.

 

An old post about something similar....

https://communities.sas.com/t5/SAS-Enterprise-Guide/Increase-the-log-in-the-EG/td-p/57472

 

Super User
Posts: 9,611

Re: Log File Size

When logs grow that large, it's usually a sign of bad code. Either there are erroneous put steps that fill the log, or steps are unnecessarily repeated instead of by group processing.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
Solution
‎11-07-2017 04:08 PM
SAS Super FREQ
Posts: 381

Re: Log File Size

Hi @asimraja,

 

"The server is disconnected" actually indicates that the server session was disconnected, which will happen if a large enough log is generated, such that the server session runs out of memory.  Proc printto is the suggested workaround.

 

Note: SAS 9.4M5 added log-streaming capability (can be turned on via internal "options iomlogautoflush;"), which will stream the log events back to the client as they occur, thus avoiding the buffering of the log events on the server leading to the out of memory condition.

 

Casey

Contributor
Posts: 39

Re: Log File Size

Posted in reply to CaseySmith
Thank you for the guidance!
☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 236 views
  • 0 likes
  • 4 in conversation