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-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 5 replies
  • 988 views
  • 5 likes
  • 4 in conversation