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?
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.
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.
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.
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.