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 (June 2005, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 6 Jun 2005 19:04:46 -0400
Reply-To:     harry.droogendyk@RBC.COM
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Harry Droogendyk <harry.droogendyk@RBC.COM>
Subject:      Re: pipe to read a directory with space
Content-Type: text/plain; charset="iso-8859-1"

double up the embedded quotes:

filename xx pipe "dir/b ""%sysfunc(pathname(WORK))\*.* "" ";

data _null_; infile xx; input; put _infile_; run;

-----Original Message----- From: owner-sas-l@listserv.uga.edu [mailto:owner-sas-l@listserv.uga.edu]On Behalf Of Ya Huang Sent: Monday, June 06, 2005 6:46 PM To: SAS-L@LISTSERV.UGA.EDU Cc: Ya Huang Subject: pipe to read a directory with space

Hi there,

filename xx pipe "dir/b %sysfunc(pathname(WORK))\*.*";

data _null_; infile xx; input; put _infile_; run;

The above doesn't work, and I believe the reason is that the directory name has spaces in it. On DOS window, I can type in dir/b "C:\WINNT\Temp\SAS Temporary Files\_TD2032\*.*" to get the list of the files, but how I can add double quote in the pipe?

Thanks

Ya __________________________________________________________________________________________________________________________________

This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately.

Ce courrier électronique est confidentiel et protégé. L'expéditeur ne renonce pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) désigné(s) est interdite. Si vous recevez ce courrier électronique par erreur, veuillez m'en aviser immédiatement, par retour de courrier électronique ou par un autre moyen.


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