<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: question about Input Reached Past the End of the Line in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/question-about-Input-Reached-Past-the-End-of-the-Line/m-p/597021#M76228</link>
    <description>Look into the defaults on the INFILE statement, specfically flowover, truncover etc. &lt;BR /&gt;&lt;BR /&gt;The default is not what you want in this case (and most cases). If you specify TRUNCOVER in your INFILE statement after DSD it will fix the issue.</description>
    <pubDate>Wed, 16 Oct 2019 18:28:20 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-10-16T18:28:20Z</dc:date>
    <item>
      <title>question about Input Reached Past the End of the Line</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/question-about-Input-Reached-Past-the-End-of-the-Line/m-p/597009#M76227</link>
      <description>&lt;P&gt;Why below two data sets have different outcome? (only difference is different type delimiter)&lt;/P&gt;&lt;P&gt;I'm thinking if hght_ft in first pic stop reading at blank and read what left for crown_ft, outcome for crown_ft should be a period since it's miising. (same as pic2) But, indeed, it reads next line for crown_ft. Why this happens??&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2019-10-16 at 1.49.10 PM.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33168i30BA195D6D14BDD5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2019-10-16 at 1.49.10 PM.png" alt="Screen Shot 2019-10-16 at 1.49.10 PM.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2019-10-16 at 1.50.05 PM.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33169i70F666F7BBE33D62/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2019-10-16 at 1.50.05 PM.png" alt="Screen Shot 2019-10-16 at 1.50.05 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 18:02:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/question-about-Input-Reached-Past-the-End-of-the-Line/m-p/597009#M76227</guid>
      <dc:creator>ll12306</dc:creator>
      <dc:date>2019-10-16T18:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: question about Input Reached Past the End of the Line</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/question-about-Input-Reached-Past-the-End-of-the-Line/m-p/597021#M76228</link>
      <description>Look into the defaults on the INFILE statement, specfically flowover, truncover etc. &lt;BR /&gt;&lt;BR /&gt;The default is not what you want in this case (and most cases). If you specify TRUNCOVER in your INFILE statement after DSD it will fix the issue.</description>
      <pubDate>Wed, 16 Oct 2019 18:28:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/question-about-Input-Reached-Past-the-End-of-the-Line/m-p/597021#M76228</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-10-16T18:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: question about Input Reached Past the End of the Line</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/question-about-Input-Reached-Past-the-End-of-the-Line/m-p/597063#M76230</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Please&lt;/STRONG&gt; post code and/or Log results into a code box opened on the forum using the {I} or "running man" icon. It should be easier than creating pictures, i.e. copy from the editor, open the window by clicking on the icon in the forum and pasting. The code boxes will also retain text formatting that is removed by the main message windows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With code we can copy and paste with suggested changes or just highlight elements in responses, neither of which we can do with pictures.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you try to read 4 variables, number on the INPUT statement&amp;nbsp;and only 3 are present then SAS is trying to satisfy your instruction to read 4. So it goes to the next line unless told otherwise. Some of the options involved could be MISSOVER TRUNCOVER or STOPOVER FLOWOVER&amp;nbsp;that implement slightly different rules for what do to do when running out of data. The default behavior is FLOWOVER, which will attempt to read from the next line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also when using simple list input as your Trees data set does the column alignment makes no difference: the values are read left to right.&lt;/P&gt;
&lt;P&gt;For example with this code:&lt;/P&gt;
&lt;PRE&gt;data junk;
   input x y z;
datalines;
1 2 .
  3 .
4 5 6
;&lt;/PRE&gt;
&lt;P&gt;I might be attempting to read X as missing and Y as 3 from the second row but the first value encountered will be read as the first variable on the INPUT statement so X=3 Y=. and then we get the ever popular:&lt;/P&gt;
&lt;PRE&gt;NOTE: SAS went to a new line when INPUT statement reached past the end of a line.

&lt;/PRE&gt;
&lt;P&gt;indicating we ran of out data. And the values on the second record of the data set has 4 for the value of Z.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 19:38:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/question-about-Input-Reached-Past-the-End-of-the-Line/m-p/597063#M76230</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-10-16T19:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: question about Input Reached Past the End of the Line</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/question-about-Input-Reached-Past-the-End-of-the-Line/m-p/597600#M76244</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;But I still confused why there is missing value for 2nd observation.&lt;/P&gt;&lt;P&gt;for 2,NCSU,&lt;/P&gt;&lt;P&gt;if we read 2 for rank, ncsu for team, we still need a value for count. why is count not 3??&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 04:05:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/question-about-Input-Reached-Past-the-End-of-the-Line/m-p/597600#M76244</guid>
      <dc:creator>ll12306</dc:creator>
      <dc:date>2019-10-18T04:05:12Z</dc:date>
    </item>
  </channel>
</rss>

