Hi.
I am working on pc laptop with the latest SAS Base installed. I have had errors and storage issues running large temporary work data being stored in my laptops 'c' drive. I've written code to delete any temporary tables as I work along by inserting
'proc datasets lib=work kill nolist memtype=data; quit;' anywhere I can. But my jobs are failing due to storage. I believe there is code where I can direct the processing of my data on an external drive (with more storage) to continue on my work? Does anyone know the code for this? I would like this code embedded into the software so I do not have to run any macros each time I load up SAS. Can anyone help me? Thank you in advance
Make a copy of the configuration file used for your SAS session (with just Base installed, this should be sasv9.cfg in Program Files\SASHome\SASFoundation\9.4), and modify the -WORK directive. Then change your desktop link to use that configuration file.
If SAS crashes then you may be left with SAS WORK folders on your C drive that can't be cleaned up by PROC DATASETS. In Windows Explorer navigate to your SAS WORK folder, normally called SASWORK and delete any old folders named _TDnnnn_xxxxxxxx.
1.Even (much) better is to use SPDE tables with binary compression.
libname W spde "%sysfunc(pathname(WORK))" compress=binary partsize=1t;
Data sets are typically shrunk by at least 80%.
2. Also consider splitting the paths for the WORK library and for the utility files onto separate disks, using option UTILLOC.
Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.