Here is a quick tip for keeping the WORK library clean in a UNIX/Linux environment. Most of the time SAS manages the cleanup process very well but sometimes orphaned processes can leave unwanted data lying around which can build up over time. This tip is only applicable for UNIX or Linux environments. Windows would have a similar approach with different commands. Use a Shell Script for UNIX Heavy Lifting This simple shell script will find all WORK directories created by SAS sessions and recursively remove everything within each directory older than a set time frame. The joys of shell scripting! WORK=/sas/work#!/bin/sh find $WORK/ -mtime +3 -type f -exec rm -rf {} \; exit 0 The WORK variable is set to the physical path of the WORK library on the compute server. The number 3 represents the number of days since the file was last modified. When this script is run, it initiates the find command which finds everything starting from the set directory with a last modified date older than 3 days, then forcibly removes everything within. To prevent any permission problems, it should be run as ‘root’ or any other super user. Why Not Schedule It? This shell […]
Skipping through OLAP to find your value
Skipping through OLAP to find your value
Use SAS Enterprise Guide to quickly understand a new data set
Use SAS Enterprise Guide to quickly understand a new data set
Social Network Analysis – SAS on the CrimeWatch
Check out my post on AllAnalytis.Com about how SAS is using analytics to fight fraudsters. Looks out crooks! Plus there was an e-chat yesterday with Angela and Dennis Toomey. [Hint: Read from the bottom.] Lots of cool information about the techno…
Stop recreating the wheel, save those common joins into a permanent view
When you are constantly taking the data tables and completing joins to begin working on your reports or analysis it might be time to consider creating permanent views. Then you can just add the view to the Enterprise Guide project rather than dealing w…
New SAS BI Book: a good read for Platform Administrators too
I’ve just added a link to the new Building Business Intelligence Using SAS: Content Development Examples book by Tricia Aanderud and Angela Hall to my reading list of information resources I find useful for SAS® platform administration. Thei…