Desktop productivity for business analysts and programmers

How to change the path of work library

Reply
N/A
Posts: 0

How to change the path of work library

The default path of work library is disk C. However, I want to change the path to another disk. How to modify the setup in EG?
Valued Guide
Posts: 2,174

Re: How to change the path of work library

it may be problem to change the path of WORK.
However, you might not need to.
You can use the same code but data will be written to "another path", if you use [pre] libname USER 'another path' ;[/pre] at the beginning of your SAS code.
Any dataset reference in SAS code with a single level name (that is, no libname) will be written to the USER libname once it is assigned.
Of course, as this is not the work library, you will have to manage its contents, and their deletion when appropriate.
This feature applies to data sets and data set views, not to catalogs.

PeterC Message was edited by: Peter.C
Super Contributor
Super Contributor
Posts: 3,174

Re: How to change the path of work library

Have a look at this SUGI/SGF technical paper.

http://www2.sas.com/proceedings/forum2008/180-2008.pdf

Scott Barry
SBBWorks, Inc.
Ask a Question
Discussion stats
  • 2 replies
  • 109 views
  • 0 likes
  • 3 in conversation