The SAS Disk Cleanup Handler Utility

Description

The SAS Disk Cleanup Handler searches for and cleans any temporary files that SAS generates, as well as any SAS Work and SAS utility directories. SAS Disk Cleanup Handler is a COM hook into the Microsoft Disk Cleanup Handler (cleanmgr.exe).
SAS Work directories have the format, TD####_hostname_ where #### is the process ID of the sas.exe that created the SASWORK directory.
SAS Disk Cleanup Handler also removes SAS utility directories that have the following format:
SAS_utilNNNNPPPPPPPP_nodename
where
  • NNNN is a unique random number
  • PPPPPPPP is the hexadecimal representation of the process ID
  • nodename is the host name of the machine that created the directory.
SAS Disk Cleanup Handler deletes the utility directories and contents only under the following conditions:
  • SAS Disk Cleanup Handler is run on the machine that represents nodename and the process ID
  • PPPPPPPP is no longer in use.
In addition, you can use the SAS Disk Cleanup Handler to clean SAS automatically generated log files. These log filenames have the format module name.PID.DATE.log. The PID represents the process ID of the process that creates the log file. If the process is no longer running, the log file will be deleted.

Requirements

The SAS Disk Cleanup Handler requires Microsoft .Net Framework 2.0 or greater for 32-bit Windows, and Windows x64 editions.

Disk Cleanup Handler steps

To run the Disk Cleanup Handler, complete these steps:
  1. Type cleanmgr from the command prompt.
    Note: You can also start the SAS Disk Cleanup Handler from Windows Explorer. Access My computer and right–click a local physical hard disk. Select Properties and double click Disk Cleanup.
    Note: Disk Cleanup Manager will start. This process might take a few minutes.
  2. Select SAS Temporary Files.
    Note: If SAS Temporary Files is not listed, the SAS Disk Cleanup Handler is not installed.
  3. Click View Files to list the currently detected SAS temporary files and directories. If a process is still active, then the file or directory will not be listed. Any files or directories to be saved should be cleared.
  4. Click OK to save changes. Click Cancel to discard.
  5. Click OK in the Disk Cleanup window to start the cleanup.
  6. Check the EventViewer for any errors.
Note: Windows Server 2008 does not automatically install Microsoft Disk Cleanup Manager (cleanmgr.exe). In order to have Microsoft Disk Cleanup Manager installed as a default application, you must install Desktop Experience. To install Desktop Experience do the following steps:
  • Open Server Manager.
  • Select Add Features from the Actions menu.
  • Select Desktop Experience.