LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (March 2012, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 27 Mar 2012 08:36:39 -0700
Reply-To:     "Huang, Ya" <Ya.Huang@AMYLIN.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Huang, Ya" <Ya.Huang@AMYLIN.COM>
Subject:      Re: Is it possible to chang work lib with options statement?
Comments: To: "Terjeson, Mark" <Mterjeson@russell.com>
In-Reply-To:  <0F548D585A011E4484D77C7B095EC53F380BE34D@TAC-CMS001.prod.ds.russell.com>
Content-Type: text/plain; charset="us-ascii"

Hi Mark,

Thanks. Will it behave the same as the totally different "default" WORK libname? I'm not too concerned about the temp datasets, but the other kind of SAS temp files. I can see temp folder being created and delete under the default WORK folder such as this:

SAS_util000100001210_n-yhuang

Will it be automatically switched too?

Ya

-----Original Message----- From: Terjeson, Mark [mailto:Mterjeson@russell.com] Sent: Tuesday, March 27, 2012 8:10 AM To: Huang, Ya; SAS-L@LISTSERV.UGA.EDU Subject: RE: Is it possible to chang work lib with options statement?

Hi Ya,

For that scenario I think I would not rely on the "default"(no libref). I would use a libref token that you can merely reassign locations to at will. I see that Ron has the same idea.

Mark

-----Original Message----- From: Huang, Ya [mailto:Ya.Huang@amylin.com] Sent: Monday, March 26, 2012 3:40 PM To: Terjeson, Mark; SAS-L@LISTSERV.UGA.EDU Subject: RE: Is it possible to chang work lib with options statement?

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


Back to: Top of message | Previous page | Main SAS-L page