DATA Step, Macro, Functions and more

SAS log Full

Reply
Super Contributor
Posts: 647

SAS log Full

Even after redirecting the log to a differnt file I'm still getting the message Disk full and out of resources and also I'm not able to delete the log file manually. when i try to delete I get this message that file is in use.

is there any turn around for the following?

 

file name logfile 'C:\temp\logfile_%sysfunc(date(),date9.).log';

proc printto log=logfile new;

run;

Trusted Advisor
Posts: 1,381

Re: SAS log Full

You need run:

   proc printto; run;

 

in oredr to close the logfile and release resources.

Super Contributor
Posts: 647

Re: SAS log Full

Thank you. What about the disk full issue?

Trusted Advisor
Posts: 1,381

Re: SAS log Full

If you succedded to release the log then first try to delete it.

 

Beyond look at the folder and check your disk for extra files that can be deleted and delete them

 

Then use options obs=100; and run a test (be aware not to damage your files) and check your log

for messages. Maybe you are in a loop.

Super User
Posts: 10,500

Re: SAS log Full

I would also suggest looking into what you are writing to the log.

 

You may put statements in loops that aren't quite what you intended.

 

Super User
Posts: 6,939

Re: SAS log Full

A disk full on the C: drive is no simple thing. When you are able to fill the drive with a log file, a thorough clean of the disk is in order.

And be aware that the log file may only be the symptom, not the cause.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Ask a Question
Discussion stats
  • 5 replies
  • 135 views
  • 5 likes
  • 4 in conversation