|
Mark,
What I wanted is to somehow switch in the middle of SAS session, so that
all temp datesets used for data manipulation, generated by myself or
SAS, and anything like temp datasets, such as temp style item store,
temp catalog etc., will be in a different network drive folder after switch.
For example when SAS starts, the work is in
C:\WINDOWS\Temp\SAS Temporary Files\_TD4828
In there, many temp datasets were created, deleted, etc.
Then I want to switch to:
X:\temp\_TD4829 (or something like that, which should be decided by SAS)
Then I will do all the processing again, and compare what the effect of
different temp folder to the overall performance. One being the local physical hard drive
and another one is network drive.
I guess I can run the code twice, each time with different invocation
parameters.
Ya
-----Original Message-----
From: Terjeson, Mark [mailto:Mterjeson@russell.com]
Sent: Monday, March 26, 2012 3:17 PM
To: Huang, Ya; SAS-L@LISTSERV.UGA.EDU
Subject: RE: Is it possible to chang work lib with options statement?
Hi Ya,
Are you asking if the actual path the work lib
is pointing to? or asking if the default lib
for datasets not having a libref can be changed?
The later can be handled with the USER= option.
* write to original WORK lib ;
data abc;
set sashelp.class;
run;
libname alt 'X:\myfolder';
options user=alt; * repoint default to alt ;
* write to X:\myfolder ;
data def;
set sashelp.class;
run;
options user=work; * repoint default back to work ;
* write to original WORK lib ;
data xyz;
set sashelp.class;
run;
Hope this is helpful.
Mark Terjeson
Investment Business Intelligence
Investment Management & Research
Russell Investments
206-505-2367
Russell
Global Leaders in Multi-Manager Investing
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Ya Huang
Sent: Monday, March 26, 2012 2:53 PM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Is it possible to chang work lib with options statement?
Hi there,
As far as I know, we can change the work folder by editing
the config file or add options in the command line when invoking
sas. I wonder if it can be done when SAS session is up by changing the
options statement.
Thanks
Ya
|