Date: Sun, 29 Jan 2006 05:56:04 -0800
Reply-To: Eric Hoogenboom <erichoogenboom@YAHOO.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Eric Hoogenboom <erichoogenboom@YAHOO.COM>
Organization: http://groups.google.com
Subject: Re: Drop odd rows after reading from a Text file
Content-Type: text/plain; charset="iso-8859-1"
Hari,
If you are very sure about the format of the data, the simplest way
(IMHO) would be:
/* untested (Hey, it is Sunday over here) */
data hbreg;
input;
input v1-v5;
datalines;
1
13 87.65 98.76 90.23 87.00
2
83 15.23 90.56 87.12 25.87
run;
If you prefer a complex way, see the input statement documentation and
use +, /, @@ etcetera to make it look interesting.
Hth,
Eric
|