<?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: get data set with 0 rows-why? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/get-data-set-with-0-rows-why/m-p/614653#M179745</link>
    <description>&lt;P&gt;The default max length of string in CARDS is 80 . try 80.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data tbl;
input ID $80.;
cards;
655 - 60039652
;
Run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 01 Jan 2020 10:36:58 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2020-01-01T10:36:58Z</dc:date>
    <item>
      <title>get data set with 0 rows-why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/get-data-set-with-0-rows-why/m-p/614651#M179744</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;Why do I get empty data set???&lt;/P&gt;
&lt;P&gt;Please not that there is space between 655 and - and between - and&amp;nbsp;&amp;nbsp;&lt;CODE class=" language-sas"&gt;60039652&lt;/CODE&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data tbl;
input ID $100.;
cards;
655 - 60039652
;
Run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Jan 2020 09:29:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/get-data-set-with-0-rows-why/m-p/614651#M179744</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2020-01-01T09:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: get data set with 0 rows-why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/get-data-set-with-0-rows-why/m-p/614653#M179745</link>
      <description>&lt;P&gt;The default max length of string in CARDS is 80 . try 80.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data tbl;
input ID $80.;
cards;
655 - 60039652
;
Run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Jan 2020 10:36:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/get-data-set-with-0-rows-why/m-p/614653#M179745</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-01-01T10:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: get data set with 0 rows-why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/get-data-set-with-0-rows-why/m-p/614656#M179748</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp; You may have noticed a note &lt;EM&gt;"NOTE: SAS went to a new line when INPUT statement reached past the end of a line."&lt;/EM&gt;&lt;BR /&gt;in the LOG. This is a default behavior of SAS when reading variable length records as to when SAS continues to read for the number of bytes provided by the width in the informat, which in your case is 100.&lt;/P&gt;
&lt;P&gt;So what happens here is, SAS tends to do that and clears the input buffer leaving no values to read while attempting to read the next dataline. To override this default behavior, you need a TRUNCOVER&amp;nbsp; in INFILE statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;infile cards truncover;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data tbl;
infile cards truncover;
input ID $100.;
cards;
655 - 60039652
;
Run&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jan 2020 17:50:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/get-data-set-with-0-rows-why/m-p/614656#M179748</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-01-01T17:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: get data set with 0 rows-why?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/get-data-set-with-0-rows-why/m-p/614660#M179752</link>
      <description>&lt;P&gt;Maxim 2: Read the Log, as &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138205"&gt;@novinosrin&lt;/a&gt;&amp;nbsp;already pointed out.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jan 2020 12:33:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/get-data-set-with-0-rows-why/m-p/614660#M179752</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-01-01T12:33:17Z</dc:date>
    </item>
  </channel>
</rss>

