SAS-Clearing and Reassigning Work Library

MANAGE YOUR WORK LIBRARY


Deleting your SAS Temporary (work) files
If you click File>Exit or click the X in the upper-right corner of the SAS window, the session ends normally and the SAS automatic library, WORK, where temporary data sets and utility files are stored, is deleted. SAS retains a list of all files created during a current SAS session and deletes the specified files on termination.
If SAS terminates due to an error in processing your SAS program, SAS does not have the opportunity to delete files in your WORK library. These files remain on your hard drive, potentially taking up large amounts of disk space, until you delete these files. You might also receive the following error message:
    Out of disk space
To circumvent the problem, delete the files in your SAS WORK library.
“Delete
NOTE: See how to Retrieve SAS codes here

To determine where your SAS WORK files are located, do the following:
1. Open SAS.
2. In the SAS Explorer window, double-click on Libraries.
3. Right mouse click on WORK and choose Properties.
4. Beside "General Properties", click the down arrow.
5. The drive letter and directories appear in the pull-down window.  All the directories, except the last directory, which  usually starts with _TD, is the location of your WORK files.
To delete the files, do the following:
1. Exit all SAS sessions.
2. Through Windows Explorer, go to your SAS WORK directory as determined previously.
3. Delete all files and sub-directories (and subsequent files) in your WORK directory.
    NOTE: This directory might be empty already.

For example, in SAS under "General Properties", your WORK directory might be displayed as the following: 


  C:\TEMP\SAS Temporary Files\_TD402


So, your WORK directory is C:\TEMP\SAS Temporary Files. In Windows Explorer, you would go to
C:\TEMP\SAS 
Temporary Files and you might see directories starting with _TD. You need to delete all the files in the _td directories and delete all the directory names starting with _td. 


Note: If you have a Recycle Bin, you can empty it to permanently remove all deleted files from your hard drive. The Recycle Bin icon should be on your desktop. If you can't find the Recycle Bin contact the PC support specialist at your site for instructions.
Reassign location of SAS WORK folder
Normally when you start a new session in SAS, a “work” folder is automatically linked to the location of SAS temporary folder.
To reassign the work folder to a folder of your choice follow the below mentioned steps:
  • Right-click on the SAS icon on your desktop or in the Start menu and select Properties
  • The properties window opens up .Click on the Target field and go to the end of the field and enter -work "D:\My Path\Work". Replace "D:\My Path\Work" with path to the location where you want the Work library to be created.
  • Click Ok.
“Reassign

Blog Widget by LinkWithin

Search this blog..

Loading