<?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: Excluding last row when importing a file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Excluding-last-row-when-importing-a-file/m-p/19125#M2941</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now if the last row is being excluded because it is a footnote instead of data you will get a lot of error messages about invalid data on your log.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Dec 2011 02:14:43 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2011-12-23T02:14:43Z</dc:date>
    <item>
      <title>Excluding last row when importing a file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Excluding-last-row-when-importing-a-file/m-p/19121#M2937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully a simple question - what's the best way to exclude the last row of a raw file from being imported into SAS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I can simply take the number of observations minus 1 after importing the data, but would rather condense into one data step if possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2011 23:24:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Excluding-last-row-when-importing-a-file/m-p/19121#M2937</guid>
      <dc:creator>dwish</dc:creator>
      <dc:date>2011-12-21T23:24:59Z</dc:date>
    </item>
    <item>
      <title>Excluding last row when importing a file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Excluding-last-row-when-importing-a-file/m-p/19122#M2938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data want ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; infile 'myfile' end=eof ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; input @ ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if eof then delete ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input .... ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2011 23:40:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Excluding-last-row-when-importing-a-file/m-p/19122#M2938</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2011-12-21T23:40:53Z</dc:date>
    </item>
    <item>
      <title>Excluding last row when importing a file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Excluding-last-row-when-importing-a-file/m-p/19123#M2939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tom!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2011 23:51:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Excluding-last-row-when-importing-a-file/m-p/19123#M2939</guid>
      <dc:creator>dwish</dc:creator>
      <dc:date>2011-12-21T23:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding last row when importing a file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Excluding-last-row-when-importing-a-file/m-p/19124#M2940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ... another idea ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;data new;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;infile 'z:\test.txt' end=last;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;input a b c;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;if ^last;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2011 20:05:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Excluding-last-row-when-importing-a-file/m-p/19124#M2940</guid>
      <dc:creator>MikeZdeb</dc:creator>
      <dc:date>2011-12-22T20:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding last row when importing a file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Excluding-last-row-when-importing-a-file/m-p/19125#M2941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now if the last row is being excluded because it is a footnote instead of data you will get a lot of error messages about invalid data on your log.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Dec 2011 02:14:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Excluding-last-row-when-importing-a-file/m-p/19125#M2941</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2011-12-23T02:14:43Z</dc:date>
    </item>
  </channel>
</rss>

