DATA Step, Macro, Functions and more

Default location for buffer and change the buffer size

Reply
Frequent Contributor
Posts: 138

Default location for buffer and change the buffer size

Hi,

What is the default location where buffer is located when we create log using proc printto?

How the default buffer length can be changed for proc printto.

Trusted Advisor
Posts: 2,113

Default location for buffer and change the buffer size

I'm not exactly sure what you mean or what you are trying to do.  If you are talking about the buffered writes for the log, then that is managed by the operating system. 

I think that the only way to change that kind of buffer length by changing the write buffer block size for your disk hardware.  That's a bit drastic as it requires reformatting the disk drive.

Doc Muhlbaier

Duke

Frequent Contributor
Posts: 138

Default location for buffer and change the buffer size

Hi Doc  ,

The issue we are facing is  that we are using proc printto and what proc printto does is that it output the log into buffer and when the buffer is full it output the same to my physical location. whenever we run our code and if there is error then many a times we are not able to see the log as the part of the log containing the error in in output and when my session is abended i am not able to see the log as it gets deleted from internal buffer.

If i use unbuflog option it will directly write to my physical file. But i want to decrease the buffer size.
I am not sure whether it uses SAS internal buffer or operating system defined buffer.

If someone can help please.

Thanks ,

Manoj

Ask a Question
Discussion stats
  • 2 replies
  • 158 views
  • 0 likes
  • 2 in conversation