|
Hi All,
Thanks Harry for the elaboration.
Harry does correctly describe how this works. On the
other hand, due to sematics (the relationship of the
meanings) to the mechanics Harry is right on, but in
the context of people's general usage and purpose,
the use of USER= in most users eyes is that it is
entirely for the purpose of redirecting the use of
the WORK library by means of the no-libref-one-level
dataset naming conventions. While people use the USER=
to "repoint" where their WORK library is, Harry is
absolutely correct in that the single level dataset
name will go to the USER library and that the WORK
library remains actively pointing to the original
location.
It is kinda like stating:
1) make three lefts to get to the grocery store.
or
2) execute a -90 degree angle at the next three
intersections to arrive at the grocery store.
There are those folks that want to know that the
getting there was a net -270 degree operation, and
some folks just want to get to the grocery store.
So I guess they are all correct to some degree and
hopefully Harry and I covered most of the bases for
the broad audience.
Thanks, Harry, for letting me be silly this morning.
:o)
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Droogendyk, Harry
Sent: Tuesday, April 03, 2007 7:35 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Re: How to assign a different directory for the work folder
I don't believe this is correct. option user=xyz; simply allows one to refer to datasets from permanent datasets with a single level name, eg.
without the libname. The following illustrates that work and the user= setting are two different beasts:
libname temp 'c:\temp';
options user = temp;
data a;
i = 1;
run;
data work.a;
i = 3;
run;
data b;
set a
work.a;
run;
proc print data=b;
run;
-----Original Message-----
From: owner-sas-l@listserv.uga.edu [mailto:owner-sas-l@listserv.uga.edu]
On Behalf Of Terjeson, Mark
Sent: 2007, April, 03 10:31 AM
To: Ankur Shanker; SAS-L@LISTSERV.UGA.EDU
Subject: RE: How to assign a different directory for the work folder
Hi Ankur,
I guess the first question is: permanently or temporarily?
To temporarily change the WORK folder
you utilize the USER= option. e.g.
libname tmplib 'mytempfolder';
option user=tmplib; * redirect WORK datasets ;
data sample;
a=1;
run;
option user=work; * put it back to the default ;
To permanently change where the session work folder is you need to edit your config.sas or sasv#.cfg file
and look for -WORK for setting the base location.
Please note that each session will still generate a unique session folder name at that location.
Hope this is helpful.
Mark Terjeson
Senior Programmer Analyst, IM&R
Russell Investment Group
Russell
Global Leaders in Multi-Manager Investing
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Ankur Shanker
Sent: Tuesday, April 03, 2007 7:17 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: How to assign a different directory for the work folder
Hello Everyone!
I want to change the directory of the work folder from the default directory (/usr/tmp/SAS_workB91900004B5A_Evs01Sas03) to a new one. Is it possible in SAS9.1.3. We work on SAS using the linux server platform.
Regards,
Ankur Shanker
________________________________
The information in this e-mail is the property of Evalueserve and is confidential and privileged. It is intended solely for the addressee.
Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and will be unlawful. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
_______________________________________________________________________
This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations.
Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized.
If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately.
Ce courrier électronique est confidentiel et protégé. L'expéditeur ne renonce pas aux droits et obligations qui s'y rapportent.
Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) désigné(s) est interdite.
Si vous recevez ce courrier électronique par erreur, veuillez m'en aviser immédiatement, par retour de courrier électronique ou par un autre moyen.
|