BookmarkSubscribeRSS Feed
SASPhile
Quartz | Level 8

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;

5 REPLIES 5
Shmuel
Garnet | Level 18

You need run:

   proc printto; run;

 

in oredr to close the logfile and release resources.

SASPhile
Quartz | Level 8

Thank you. What about the disk full issue?

Shmuel
Garnet | Level 18

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.

ballardw
Super User

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.

 

Kurt_Bremser
Super User

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.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 5 replies
  • 1459 views
  • 5 likes
  • 4 in conversation