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 (February 2009, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 25 Feb 2009 14:33:53 -0500
Reply-To:   Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Gerhard Hellriegel <gerhard.hellriegel@T-ONLINE.DE>
Subject:   Re: Get data in Using Input: Log has SAS went to a new line when INPUT statement reached past the end of a line.

...you can avoid this by eg:

data fltdest ; infile datalines truncover; input Flight $ Destination $20. ; put _all_ ; datalines ;

145 Brussels 145 Edmonton 150 Paris 150 Madrid 165 Seattle

; run;

There are also some other possible options, like missover, ... which does nearly the same. Gerhard

On Wed, 25 Feb 2009 14:10:48 -0500, Akshaya Nathilvar <akshaya.nathilvar@GMAIL.COM> wrote:

>This is becoz of two blank lines one at the top and the other at the bottom, >Input stmt is forced to read past the end of the current record and moves >the pointer to the first column of next record. Caused by Flowover-- the >default behavior for input stmts. > >On Wed, Feb 25, 2009 at 1:14 PM, SUBSCRIBE SAS-L Dan ><deniseyu001@gmail.com>wrote: > >> Hi. SasLers: >> >> Please help to clarify this to me. Thanks. >> >> My code is as below: >> >> data fltdest ; >> input Flight $ Destination $20. ; >> put _all_ ; >> datalines ; >> >> 145 Brussels >> 145 Edmonton >> 150 Paris >> 150 Madrid >> 165 Seattle >> >> ; >> run; >> >> proc print ; run; >> >> The log give this >> >> "NOTE: SAS went to a new line when INPUT statement reached past the end of >> a line." >> > > > >-- >AkshayA!


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