Date: Wed, 16 Jan 2002 17:29:24 -0500
Reply-To: "Schulingkamp, Michael E" <michael.e.schulingkamp@LMCO.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Schulingkamp, Michael E" <michael.e.schulingkamp@LMCO.COM>
Subject: Re: reading UNIX compressed file with pipe
According to the online doc, the recfm=n can be placed on either line. If I
move it to the infile statement, there is no change. I'm unable to copy the
log into this mail message (the work I do is on another system which is
secure). However, the error message that I get is
ERROR: Random access not allowed
And, yes, the uncompress command does work in the shell.
> -----Original Message-----
> From: Karsten M. Self [SMTP:kmself@IX.NETCOM.COM]
> Sent: Tuesday, January 15, 2002 9:54 PM
> To: SAS-L@LISTSERV.UGA.EDU
> Subject: Re: reading UNIX compressed file with pipe
> on Tue, Jan 15, 2002 at 08:13:02PM -0500, Schulingkamp, Michael E
> (michael.e.schulingkamp@LMCO.COM) wrote:
> > I currently have code which reads binary files on the UNIX system.
> > Most times, the files are compress with the UNIX compress command. I
> > am trying to change the code so that it reads the compressed files
> > using a pipe but I am having little success. The code looks something
> > like this:
> > filename indata pipe 'uncompress -c file.Z' recfm=n ;
> > data set10 ;
> > infile indata ;
> > input ...
> > run;
> > Any suggestions?
> I suspect you want the recfm option on the infile statement, not the
> filename statement.
> How doesn't your code work? Log output would be helpful.
> Does the pipe command work on the shell?
> Karsten M. Self <email@example.com>
> What part of "Gestalt" don't you understand? Home of the
> http://gestalt-system.sourceforge.net/ Land of the
> We freed Dmitry! Boycott Adobe! Repeal the DMCA!
> Geek for Hire