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 (October 1998, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 21 Oct 1998 17:43:55 -0600
Reply-To:     Mark S Dehaan <MSD@INEL.GOV>
Sender:       "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:         Mark S Dehaan <MSD@INEL.GOV>
Subject:      Re: Wrong stuff in pipe ???
Comments: To: Bernard Tremblay <bernard@CAPITALE.QC.CA>
Comments: cc: SAS-L <SAS-L@inel.gov>
Content-type: text/plain; charset=us-ascii

Bernard,

wrt your subject line - I suggest you try sending such notes to alt.pot.smoke or the likes.

Just kidding - whether intentional or not I appreciated the irony. Sometimes my SAS coding makes me feel delirious too ;-)

Regards, Mark DeHaan

Bernard Tremblay <bernard@CAPITALE.QC.CA> on 10/21/98 06:59:17 AM

Please respond to Bernard Tremblay <bernard@CAPITALE.QC.CA>

To: SAS-L@VTVM1 cc: (bcc: Mark S Dehaan/MSD/LMITCO/INEEL/US) Subject: Wrong stuff in pipe ???

Hi,

I'm trying to read a compressed SAS file directly from SAS. I tried the sample program from SAS institute but I get error messages. I first created the named pipe in my home, then I compressed a small SAS file (named work1.pipe).

Here a sample of what I get from the LOG: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ 98 libname compr '~/named_pipe'; NOTE: Libref COMPR was successfully assigned as follows: Engine: TAPE Physical Name: /home/bernard/named_pipe 99 filename nwrpipe pipe 'uncompress > ~/named_pipe < /work1/pipe.ssd01.Z &'; 100 data _null_; 101 infile nwrpipe; 102 run;

NOTE: The infile NWRPIPE is: Pipe command="uncompress > ~/named_pipe < /work1/pipe.ssd01.Z &"

NOTE: 0 records were read from the infile NWRPIPE. NOTE: DATA statement used: real time 4.510 seconds cpu time 0.106 seconds

103 data new; set compr.pipe;run; ERROR: The record formats are different.

NOTE: The SAS System stopped processing this step because of errors. WARNING: The data set WORK1.NEW may be incomplete. When this step was stopped there were 0 observations and 0 variables. WARNING: Data set WORK1.NEW was not replaced because this step was stopped. NOTE: DATA statement used: real time 1.120 seconds cpu time 0.075 seconds ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~

From the message I have, I understant that SAS is expecting something that would be created with the TAPE engine. It is not the case, this is a standard disk file I compressed with Unix compress command.

I tried to rename the named pipe like a SAS datasets to fool SAS and make it think the pipe is a SAS file. This don't work either... SAS give me the following message:

WARNING: File '/home/bernard/npipe.ssd01' is shorter than expected. 109 data new; set compr.npipe;run; ERROR: Invalid header on file COMPR.NPIPE.DATA.

Is the example from SAS institure wrong or am I missing something ???

Regards, Bernard Tremblay \\\|/// \\ - - // ( @ @ ) +------oOOo-(_)-oOOo----------+---------------------------------+ | Bernard Tremblay | | | La Capitale | Tel: (418) 646-2401 | | | Fax: (418) 646-5960 | | | Int: bernard@capitale.qc.ca | +-----------------------------+---------------------------------+ | Imaginasys enr | Res: (418) 658-1411 | | | Int: bertrem@quebectel.com | +---------------Oooo----------+---------------------------------+ oooO ( ) ( ) ) / \ ( (_/ \_)


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