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 (July 2002, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 10 Jul 2002 13:27:03 -0700
Reply-To:     Doug <queanbeyan@HOTMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Doug <queanbeyan@HOTMAIL.COM>
Organization: http://groups.google.com/
Subject:      Re: assigning a libname to a directory
Content-Type: text/plain; charset=ISO-8859-1

Thanks Ace,

What I came up with was to do ad 'x dir/b/l/b c:\strip\ >dir.txt'; and then to read in the dir.txt file, output to a dirtxt.dat file with the tidied up result, and then to populate a list box with the info in the dirtxt.dat file. I will try your suggestions as it saves a fair bit of code as well as looks less prone to error.

Cheers

Doug

Ace <b.rogers@virgin.net> wrote in message news:<j76oiu4rduq81nhk4uk19dvfs5ep1so41u@4ax.com>... > On 10 Jul 2002 02:47:15 -0700, queanbeyan@hotmail.com (Doug) wrote: > > >I have a frame that has a pushbutton (libnew) for a user to click to > >select a directory to which a library should be mapped, however the > >following doesn't do quite what I want... > > > >libnew: > > call execcmdi('libassign'); > > lib1._repopulate(); > > strip=lblib1.selecteditem; > >return; > > > >This only brings up the libassign thing - and the user would need to > >key in the libname as well as map to their directory. I would like to > >have libassign (or something like it) to simply ask for the path to > >the directory for the the strip library and once selected to get SAS > >to map the strip library to that directory. But I am unable to find a > >way to do that at the moment. > > There's a number of alternatives which could be used - I'd suggest > using the filedialog function to prompt for the directory path, > something like: > > rc = filedialog('library',path) ; > > Then the libname function to assign it to a name of your choice: > > rc = libname('YOURLIB',path) ; > > > HTH


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