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 (February 2001, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 13 Feb 2001 20:07:47 -0500
Reply-To:     David Dickinson <dickinsn@NOSPAM.URREA.ORG>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         David Dickinson <dickinsn@NOSPAM.URREA.ORG>
Organization: Ye 'Ol Disorganized NNTPCache groupie
Subject:      Re: WNT:  Using environment variables in LIBNAME statements
Content-Type: text/plain; charset=us-ascii

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


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