Date: Wed, 15 Apr 1998 12:41:58 -0700
Reply-To: "Berryhill, Timothy" <TWB2@PGE.COM>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: "Berryhill, Timothy" <TWB2@PGE.COM>
Subject: Re: help read a record and then output ...
Perhaps something like:
INFILE JOINED 'SOME.DATA.HERE' DLM='^';
VALUE='AS LONG AS THE MAXIMUM VALUE';
DO UNTIL (VALUE EQ '');
INPUT VALUE @;
IF VALUE GT '' THEN OUTPUT;
This will not handle embedded blanks. That might require reading the
Tim Berryhill - Contract Programmer and General Wizard
TWB2@PGE.COM or http://www.aartwolf.com/twb.html
Frequently at Pacific Gas & Electric Co., San Francisco
The correlation coefficient between their views and
my postings is slightly less than 0
> From: Tim Pi[SMTP:timpi@FMRCO.COM]
> Reply To: timpi@FMRCO.COM
> Sent: Wednesday, April 15, 1998 12:19 PM
> To: SAS-L@UGA.CC.UGA.EDU
> Subject: help read a record and then output ...
> Hi SAS users,
> I have a file in the following format :
> ^xxxx^jljlsas^n134vzcsdr^ccc^re3nh4^ ...............^
> The ^ is the delimiter. I want to convert it into multiple
> However the number of ^ is different everytime I get the file.
> Any idea?
> Tim Pi