Date: Thu, 1 Nov 2007 12:57:55 -0500
Reply-To: "data _null_," <datanull@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "data _null_," <datanull@GMAIL.COM>
Subject: Re: how to read gzip file in SAS
In-Reply-To: <5ac3d2950711011052p6d0bb159l8d07dfd71b481190@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
filename hhafixed pipe '"C:\Program Files\GnuWin32\bin\gunzip" -c
C:\SEERMEDICARE\disk1\hhasaf91.txt.gz';
Path contains a space, need to be double quoted for Winders. I added
double quotes around the path above. See if that works.
On 11/1/07, wraong <wrong.wang@gmail.com> wrote:
> Hi,
> I changed filename command as:
>
>
> filename hhafixed pipe 'C:\Program Files\GnuWin32\bin\gunzip -c
> C:\SEERMEDICARE\disk1\hhasaf91.txt.gz'; /*reading in a
> zipped file*/
>
> Then SAS said
> 'C:\Program' is not recognized as an internal or external command, operable
> program or batch file.
>
> I tried Start-Run-C:\Program Files\GnuWin32\bin\gunzip , the file can be
> open by gzip.exe.
>
> What else should I do?
>
> Thanks.
>
>
>
>
>
>
>
> On 11/1/07, data _null_, <datanull@gmail.com> wrote:
> > I think Howard was saying to debug your CALL to Gzip. I expect you
> > just need to call it with the full path. C:\your file path\gunzip
> >
> > open a DOS box to test
> >
> > On 11/1/07, wraong <wrong.wang@gmail.com> wrote:
> > > Hi, Howard,
> > >
> > > How to debug gunzip?
> > >
> > > Install *GNU Tar* and *GNU GZip* for Windows. Added "C:\Program
> > > Files\GnuWin32\bin" to my Path System variable by going to Control
> Panel-->
> > > System Properties --> Advanced Tab--> Environment Variables
> > >
> > > Did I added wrong path?
> > >
> > > Thanks.
> > >
> > > Best,
> > > Rong
> > >
> > >
> > >
> > > On 11/1/07, Howard Schreier <hs AT dc-sug DOT org> <nospam@howles.com>
> > > wrote:
> > > >
> > > > On Thu, 1 Nov 2007 12:21:58 -0400, wraong <wrong.wang@GMAIL.COM>
> wrote:
> > > >
> > > > >Hi,all,
> > > > >
> > > > >I need to read gzipped files. I tried with filname command as
> bellow:
> > > > >
> > > > >filename medpar pipe 'gunzip -c
> E:\seer_med\200501\medpar91.txt.gz';
> > > > >/*reading in a zipped file*/
> > > > >
> > > > >In the log file, it said "'gunzip' is not recognized as an internal
> or
> > > > >external command,
> > > > >operable program or batch file."
> > > > >
> > > > >How can I solve the problem?
> > > > >
> > > > >Thanks for kind help.
> > > > >
> > > > >Best,
> > > > >Rong
> > > >
> > > > I don't think it's a SAS problem. Debug your GUNZIP invocation from a
> host
> > > > OS command line.
> > > >
> > >
> >
>
>
|