Architecting, installing and maintaining your SAS environment

sas_util file

Accepted Solution Solved
Reply
Super Contributor
Super Contributor
Posts: 328
Accepted Solution

sas_util file

does sas_util file under temp work dir has data? 

there is one big sas_util file under temp work dir and we want to delete it but we don't want to loose any data - can we delete it? we want to freeup some space...

 

thanks!


Accepted Solutions
Solution
‎01-13-2017 06:19 PM
Super User
Posts: 3,112

Re: sas_util file

SAS_UTIL files are temporary utility files used by SAS for processing purposes. It is safe to delete them as long as the SAS process that created it is no longer running.

 

Most SAS sites regularly run the CLEANWORK utility to do automatic removal of old temporary SAS files and folders.

View solution in original post


All Replies
Solution
‎01-13-2017 06:19 PM
Super User
Posts: 3,112

Re: sas_util file

SAS_UTIL files are temporary utility files used by SAS for processing purposes. It is safe to delete them as long as the SAS process that created it is no longer running.

 

Most SAS sites regularly run the CLEANWORK utility to do automatic removal of old temporary SAS files and folders.

Super Contributor
Super Contributor
Posts: 328

Re: sas_util file

Thank you SASKiwi - we had error in code and we closed session so may be SAS didn't have opportunity to clean up itself when we closed it...
Super User
Posts: 17,868

Re: sas_util file


woo wrote:
Thank you SASKiwi - we had error in code and we closed session so may be SAS didn't have opportunity to clean up itself when we closed it...

 

This is a common occurrence, from users not waiting for a process to finish or SAS terminating abruptly. As @SASKiwi mentions, running Clean Work utility on a regular basis to avoid files left lying around after a process abnormally terminates.

Super Contributor
Super Contributor
Posts: 328

Re: sas_util file

Thank you Reeza for your comment, we have that in place but i think since sas eg looks for pid upon cleanup, that session might be left over (uncleaned).

Super User
Posts: 6,955

Re: sas_util file


woo wrote:
Thank you SASKiwi - we had error in code and we closed session so may be SAS didn't have opportunity to clean up itself when we closed it...

I have a shell script that runs cleanwork on all our WORK/UTILLOC locations. Besides being run from cron, I also run that script everytime I have to kill a SAS process.

Some programming errors can leave SAS in a state where only kill -9 works, or even a successful kill without -9 does not perform the cleanup.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
☑ This topic is SOLVED.

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

Discussion stats
  • 5 replies
  • 388 views
  • 0 likes
  • 4 in conversation