Date: Wed, 7 Dec 2005 02:13:35 -0800
Reply-To: RolandRB <rolandberry@HOTMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: RolandRB <rolandberry@HOTMAIL.COM>
Subject: Re: Changing default library for present SAS/code session
Content-Type: text/plain; charset="iso-8859-1"
> With help from this group, I have been able to create a library (to a
> temp location) called "Abcproj"
> Presently I am doing many operations which does manipulations on data.
> Since I want all the files in my project to be tethered to "Abcproj" i
> have to use the libname "Abcproj." in fron tof every data file,
> otherwise the subsequent data gets stored linked to Work folder.
> for example i have the following:-
> X 'mkdir %temp%\ABCproj';
> %LET TMPAREA=%sysget(temp);
> libname ABCproj "&TMPAREA.\abcproj";
> *---Importing raw data file---*;
> PROC IMPORT OUT= RawTotal
> DATAFILE= "\\hari\hari actproj\ABSProj\From Client\2005 11
> 17\Test Data.csv"
> DBMS=CSV REPLACE;
> In the above case Rawtotal gets stored in Work folder. if I want it to
> be stored in Abcproj library I have to use "PROC IMPORT OUT=
> For many other procedures whereby datasets are created I have to append
> Abcproj. Is there some way by which I can avoid appending Abcproj. to
> every "data statement" and "proc XXXX out = " statement and still have
> those files in my new library? probably some piece of code can
> temporarily assign the default location as Abcproj and another piece of
> code can temporarily assign the default library back to WORK folder
> (which I can use at end of my present code).
Try options USER=abcproj;
and set back to USER=WORK later if need be.