Date: Mon, 28 Jan 2008 06:30:30 -0800
Reply-To: Peter <crawfordsoftware@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Peter <crawfordsoftware@GMAIL.COM>
Subject: Re: Pipe when file location has spaces
Content-Type: text/plain; charset=ISO-8859-1
On 28 Jan, 13:36, Paige Miller <paige.mil...@kodak.com> wrote:
> I have been using pipes to read the list of files in a Windows folder
> on a server.
> for example
> libname mydir pipe "\\server\share\foldername";
> data dirlist;
> infile mydir pad missover;
> was successful at reading the contents of the folder.
> Now, the server admin has changed the share name to a share that has a
> space in the name.
> No longer does the pipe work, and I can't figure out what to change to
> make the pipe work when there is a space in the share name. Help!
have you tried embedding the path in double quotes for the server, and
single-quoting that for the libname statement, like
libname mydir pipe '"\\server\share\foldername"';