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 (January 2006, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: sas-l@uga.edu
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


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