Write and run SAS programs in your web browser

Remove working folder from running job

Reply
Contributor
Posts: 44

Remove working folder from running job

I found out that when I finish running or cancel the running job, there are some information stored in some working folders(stored in saswork - UNIX). Sometimes it will be automatically deleted but sometimes it will still stay there. Would there any options for us to do before running a job or telling sas di to delete the corresponding working folders?

Trusted Advisor
Posts: 1,440

Re: Remove working folder from running job

SASWORK exists as long as the SAS session exists.

The folder is removed by SAS, when SAS session ends normally, but stays on when job is canceled.

 

The only way I know in unix is to cancel the delete it manually, when job ends suddenly.

Super User
Posts: 7,094

Re: Remove working folder from running job

SAS provides a utility (SASFoundation/9.4/utilities/bin/cleanwork) that can (and should) be used regularly (think cron job) to remove leftover WORK directories from SAS sessions that did not terminate gracefully.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Ask a Question
Discussion stats
  • 2 replies
  • 117 views
  • 0 likes
  • 3 in conversation