BookmarkSubscribeRSS Feed
iSAS
Quartz | Level 8

Would just like to clarify how SAS Cleanwork works. Does it delete sessions that are still up and running on the Server side but not on the client side?

5 REPLIES 5
AndrewHowell
Moderator

Cleanwork utility - SAS 9.4 Companion for Windows, Fifth Edition

Cleanwork utility - SAS 9.4 Companion for UNIX Environments, Fifth Edition

 

"Deletes any leftover Work directories, utility directories, or both, whose associated SAS process has ended."

 

What "client side" SAS processes are you referring to?

SASKiwi
PROC Star

A clear case of read the manual:

http://documentation.sas.com/?docsetId=hostwin&docsetTarget=p03ktuo5yud2usn1qakys69p076s.htm&docsetV...

 

To summarise: it discovers and removes SAS temporary files that are no longer opened by a SAS session. It doesn't do anything with SAS sessions.

iSAS
Quartz | Level 8
Hello SASKiwi. Thanks for the information.
So what if for the meantime I have a temporary file that I won't use as of the moment but I will do so later, does that mean that If I apply cleanwork prior to using it again it won't be available anymore?
SASKiwi
PROC Star

@iSAS - this only applies to SAS WORK or utility libraries. These are deleted at the end of every SAS session anyway if SAS closes normally. Cleanwork removes folders created by SAS sessions that didn't close properly. If you need to keep a "temporary" file put it in a SAS permanent library if it is a SAS file. 

LinusH
Tourmaline | Level 20
As long as your session is active cleanwork won't touch your files/temporary data sets.
Data never sleeps

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 5 replies
  • 1372 views
  • 1 like
  • 4 in conversation