|
...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!
|