<?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: SAS went to a new line when INPUT statement reached past the end of a line. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-went-to-a-new-line-when-INPUT-statement-reached-past-the-end/m-p/182988#M265339</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very, very much. I do want to ask though, what is the difference between datalines and card?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Apr 2014 12:03:35 GMT</pubDate>
    <dc:creator>NOA</dc:creator>
    <dc:date>2014-04-17T12:03:35Z</dc:date>
    <item>
      <title>SAS went to a new line when INPUT statement reached past the end of a line.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-went-to-a-new-line-when-INPUT-statement-reached-past-the-end/m-p/182986#M265337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Trying out some "how to trouble shoot" SAS issues as suggested by a mentor. I want to reiterate that I am very new at SAS ( a real novice) and so I am trying to understand the concepts better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried running this (this is a shortened version because the original one actually has 600000 observations) but I ended up getting this warning&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: LOST CARD&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;NOTE: SAS went to a new line when INPUT statement reached past the end of a line.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.NEWBIE has 500000 observations and 8 variables ---&amp;gt; Its suppose to be 600,000&lt;/P&gt;&lt;P&gt;xt t&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA NEWBIE;&lt;/P&gt;&lt;P&gt;INPUT YEAR CODE1 CODE2 DOB MARRIED $ DATE yyddmm10. NUMBER1 NUMBER2;&lt;/P&gt;&lt;P&gt;2010 2010000008 NULL 1984 N 2009-05-23&amp;nbsp;&amp;nbsp;&amp;nbsp; 15 40&lt;/P&gt;&lt;P&gt;2010 2010000067 2013128497 1979 Y 2009-06-30&amp;nbsp;&amp;nbsp;&amp;nbsp; 07 37&lt;/P&gt;&lt;P&gt;2010 2010000044 NULL 1980 Y 2009-05-19&amp;nbsp;&amp;nbsp;&amp;nbsp; 13 40&lt;/P&gt;&lt;P&gt;2010 2010000009 NULL 1984 Y 2009-06-04&amp;nbsp;&amp;nbsp;&amp;nbsp; 13 40&lt;/P&gt;&lt;P&gt;2010 2010000029 NULL 1975 N 2009-07-23&amp;nbsp;&amp;nbsp;&amp;nbsp; 10 39&lt;/P&gt;&lt;P&gt;2010 2010000040 NULL 1981 Y 2009-05-01&amp;nbsp;&amp;nbsp;&amp;nbsp; 12 40&lt;/P&gt;&lt;P&gt;2010 2010000091 NULL 1974 Y NULL 99 35&lt;/P&gt;&lt;P&gt;2010 2010000082 NULL 1987 Y 2009-04-27&amp;nbsp;&amp;nbsp;&amp;nbsp; 12 38&lt;/P&gt;&lt;P&gt;2010 2010000003 NULL 1989 Y 2009-09-07&amp;nbsp;&amp;nbsp;&amp;nbsp; 12 36&lt;/P&gt;&lt;P&gt;2010 2010000057 NULL 2001 N NULL 12 37&lt;/P&gt;&lt;P&gt;2010 2010000008 NULL 2013 N NULL 13 38&lt;/P&gt;&lt;P&gt;2010 2010000059 NULL 2015 N 2009-07-03&amp;nbsp;&amp;nbsp;&amp;nbsp; 12 39&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I searched online and some mentioned adding a truncover statement next to infile. As you can see, in this one I have no INFILE statement at all.&lt;/P&gt;&lt;P&gt;Help would be much appreciated as to how I can run this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 02:06:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-went-to-a-new-line-when-INPUT-statement-reached-past-the-end/m-p/182986#M265337</guid>
      <dc:creator>NOA</dc:creator>
      <dc:date>2014-04-17T02:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAS went to a new line when INPUT statement reached past the end of a line.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-went-to-a-new-line-when-INPUT-statement-reached-past-the-end/m-p/182987#M265338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your problem isn't the fact that you don't have the truncover option in place.&amp;nbsp; I show how to include it, below, but it isn't actually necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, there is no cards or datalines statement in your code thus, since it ran, I presume you simply forgot to show it in the code that you posted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I presume you ended up with an extremely long log as the string NULL would cause a warning each time it was confronted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main problem you have is that some of your datalines have number1 too close to the date field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the following, look at the code to see what is different from your code, and do a Google search for anything that you don't understand:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA NEWBIE;&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile cards truncover;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input @;&lt;/P&gt;&lt;P&gt;&amp;nbsp; _infile_=tranwrd(_infile_,'NULL',.);&lt;/P&gt;&lt;P&gt;&amp;nbsp; INPUT YEAR CODE1 CODE2 DOB MARRIED $ DATE: yymmdd10. NUMBER1 NUMBER2;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;2010 2010000008 NULL 1984 N 2009-05-23&amp;nbsp;&amp;nbsp;&amp;nbsp; 15 40&lt;/P&gt;&lt;P&gt;2010 2010000067 2013128497 1979 Y 2009-06-30&amp;nbsp;&amp;nbsp;&amp;nbsp; 07 37&lt;/P&gt;&lt;P&gt;2010 2010000044 NULL 1980 Y 2009-05-19&amp;nbsp;&amp;nbsp;&amp;nbsp; 13 40&lt;/P&gt;&lt;P&gt;2010 2010000009 NULL 1984 Y 2009-06-04&amp;nbsp;&amp;nbsp;&amp;nbsp; 13 40&lt;/P&gt;&lt;P&gt;2010 2010000029 NULL 1975 N 2009-07-23&amp;nbsp;&amp;nbsp;&amp;nbsp; 10 39&lt;/P&gt;&lt;P&gt;2010 2010000040 NULL 1981 Y 2009-05-01&amp;nbsp;&amp;nbsp;&amp;nbsp; 12 40&lt;/P&gt;&lt;P&gt;2010 2010000091 NULL 1974 Y NULL 99 35&lt;/P&gt;&lt;P&gt;2010 2010000082 NULL 1987 Y 2009-04-27&amp;nbsp;&amp;nbsp;&amp;nbsp; 12 38&lt;/P&gt;&lt;P&gt;2010 2010000003 NULL 1989 Y 2009-09-07&amp;nbsp;&amp;nbsp;&amp;nbsp; 12 36&lt;/P&gt;&lt;P&gt;2010 2010000057 NULL 2001 N NULL 12 37&lt;/P&gt;&lt;P&gt;2010 2010000008 NULL 2013 N NULL 13 38&lt;/P&gt;&lt;P&gt;2010 2010000059 NULL 2015 N 2009-07-03&amp;nbsp;&amp;nbsp;&amp;nbsp; 12 39&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 03:01:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-went-to-a-new-line-when-INPUT-statement-reached-past-the-end/m-p/182987#M265338</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-04-17T03:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: SAS went to a new line when INPUT statement reached past the end of a line.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-went-to-a-new-line-when-INPUT-statement-reached-past-the-end/m-p/182988#M265339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very, very much. I do want to ask though, what is the difference between datalines and card?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 12:03:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-went-to-a-new-line-when-INPUT-statement-reached-past-the-end/m-p/182988#M265339</guid>
      <dc:creator>NOA</dc:creator>
      <dc:date>2014-04-17T12:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: SAS went to a new line when INPUT statement reached past the end of a line.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-went-to-a-new-line-when-INPUT-statement-reached-past-the-end/m-p/182989#M265340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simply put: none.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One is just an alias for the other.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 12:35:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-went-to-a-new-line-when-INPUT-statement-reached-past-the-end/m-p/182989#M265340</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-04-17T12:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAS went to a new line when INPUT statement reached past the end of a line.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-went-to-a-new-line-when-INPUT-statement-reached-past-the-end/m-p/182990#M265341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aside from spelling and number of characters there is at least one more difference which you can read about in the following thread: &lt;A __default_attr="39388" __jive_macro_name="thread" class="jive_macro jive_macro_thread" href="https://communities.sas.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 13:23:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-went-to-a-new-line-when-INPUT-statement-reached-past-the-end/m-p/182990#M265341</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-04-17T13:23:39Z</dc:date>
    </item>
  </channel>
</rss>

