Date: Tue, 13 Feb 2001 17:16:18 -0800
Reply-To: "William W. Viergever" <wwvierg@IBM.NET>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "William W. Viergever" <wwvierg@IBM.NET>
Subject: Re: WNT: Using environment variables in LIBNAME statements
In-Reply-To: <3A89DA63.DE68E489@NOSPAM.urrea.org>
Content-Type: text/plain; charset="us-ascii"; format=flowed
I like this better than mine - way better!
At 08:07 PM 2/13/2001 -0500, David Dickinson wrote:
>try
>
>libname u "\\server\share\%sysget(username)";
>
>David
>
>Jack Shoemaker wrote:
>
> > Dear SAS-L,
> >
> > If my WNT username is 'shoe' and I have a folder called shoe in the
> > '\\SERVER\Share' share, then I would like to make this LIBNAME statement
> > work:
> >
> > libname u '\\SERVER\Share\%USERNAME%'; run;
> >
> > Trouble is, the above doesn't work for me under WNT4.0SP6 SAS 8.1. Does
> > anyone know the trick to de-reference the USERNAME environment variable so
> > that it will work in a LIBNAME statement?
> >
> > TIA - Jack
> >
> > --
> > Jack N Shoemaker / JShoemaker@Accordant.net
> > Visit our patient communities at http://www.accordant.com or our corporate
> > site http://www.accordant.net
>
>--
>To Reply, Remove NOSPAM from my address
>David Dickinson, URREA
----------------------------------------------------------------------------
William W. Viergever Voice : (916) 483-8398
Viergever & Associates Fax : (916) 486-1488
Sacramento, CA 95835 E-mail : wwvierg@ibm.net
----------------------------------------------------------------------------
|