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 (May 2008, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 16 May 2008 10:13:45 -0700
Reply-To:     Lou <lpogoda@HOTMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Lou <lpogoda@HOTMAIL.COM>
Organization: http://groups.google.com
Subject:      Re: Unnamed pipe - help needed
Comments: To: sas-l@uga.edu
Content-Type: text/plain; charset=ISO-8859-1

On May 16, 11:32 am, chang_y_ch...@HOTMAIL.COM (Chang Chung) wrote: > On Thu, 15 May 2008 09:00:09 -0700, Lou <lpog...@HOTMAIL.COM> wrote: > > ... > > >NOTE: The infile INDD is: > > Unnamed Pipe Access Device, > > > PROCESS="O:\Utility Library\File Checksum Integrity Verifier > >\fciv.exe" "O:\Utility Library\File Checksum Integrity > > Verifier\readme.txt", > > RECFM=V,LRECL=256 > > >Stderr output: > >'O:\Utility' is not recognized as an internal or external command, > >operable program or batch file. > > hi, Lou, > pipe filename seems doing something funny parsing process string with double > quotes. I found the following work: > cheers, > chang > > /* works */ > filename p pipe """""d:\your dir\fciv.exe"" ""d:\your dir\readme.txt"""""; > data _null_; > infile p truncover; > input; > put _infile_; > run; > filename p clear; > > /* this works */ > x cd d:\your dir\; > filename p pipe "fciv.exe readme.txt"; > data _null_; > infile p truncover; > input; > put _infile_; > run; > filename p clear; > > /* this also works -- & is a command separator for cmd.exe */ > filename p pipe 'cd "d:\your dir\" & fciv.exe readme.txt'; > data _null_; > infile p truncover; > input; > put _infile_; > run; > filename p clear; > > /* this does not work */ > filename p pipe """d:\your dir\fciv.exe"" ""d:\your dir\readme.txt"""; > data _null_; > infile p truncover; > input; > put _infile_; > run; > filename p clear;

That works - I tried various numbers and permutations of single and double quotes, but it never occurred to me to try five quotes on the outside and two quotes on the inside. Thanks much. Lou


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