Date: Thu, 2 Dec 2010 03:48:00 -0500
Reply-To: Søren Lassen <s.lassen@POST.TELE.DK>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Søren Lassen <s.lassen@POST.TELE.DK>
Subject: Re: Creating automatic libraries
Content-Type: text/plain; charset=ISO-8859-1
Well done!
That's the answer. If you do this:
data "temp1";
a=5;
run;
x cd h:\; /* Not the initial default folder */
data "temp2";
a=5;
run;
you will have two new libraries allocated: Wc000001 (initial default
folder) which contains the temp1 table and Wc000002 (h:\) which contains
the temp2 table.
Regards,
Søren
On Wed, 1 Dec 2010 09:12:52 -0500, Mike Rhoads <RHOADSM1@WESTAT.COM> wrote:
>You're right -- thinking through it, that actually does make sense. I
think the general intent of allowing quoted SAS data set references is that
users would specify the entire path:
>
>data "c:\junk\one.sas7bdat";
>
>rather than explicitly specifying a libname statement. Since the internal
logic of SAS requires some sort of libref for every referenced data set, it
makes one up (the wc000001).
>
>A small word of warning -- these are NOT "temporary" data sets, as they
would be if they were unquoted and went into the WORK library. Since no
path was specified, SAS has to physically put the files somewhere -- in my
case, in C:\Documents and Settings\{myuserid}. So, those of us who have
been experimenting with this over the past couple days should remember to
clean these up. ;-)
>
>
>Mike Rhoads
>RhoadsM1@Westat.com
>
>
>-----Original Message-----
>From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Tom
Abernathy
>Sent: Tuesday, November 30, 2010 6:45 PM
>To: SAS-L@LISTSERV.UGA.EDU
>Subject: Re: Creating automatic libraries
>
>I doubt that has anything to do with the client/server application.
>SAS creates these "automatic" libraries when you reference a dataset with a
>quoted filename instead of using the normal [libref.]memname syntax.
>
>Try:
>
>data "one";
> do i=1 to 10; output; end;
>run;
>
>
>
>On Tue, 30 Nov 2010 13:29:08 -0500, Jeff Magouirk
><jeffrey.magouirk@RMPDC.ORG> wrote:
>
>>SAS-L,
>>
>>We are running SAS 9.2 on a 64-bit machine in a client/server application.
>>The dataset I created ended up in the Wc000001 library instead of the Work
>>library. I did not create the Wc000001 library? It appears that SAS
>>created the Wc000001 library without being prompte. Has anyone
experienced
>>this before?
>>
>>Thanks,
>>
>>Jeff
|