<?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 Read External file last observation value? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Read-External-file-last-observation-value/m-p/25440#M5771</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ksharp:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i did it in more tedios and bad way to detect there is a End of file statment.&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Liangck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Oct 2011 02:35:49 GMT</pubDate>
    <dc:creator>Liangck</dc:creator>
    <dc:date>2011-10-12T02:35:49Z</dc:date>
    <item>
      <title>Read External file last observation value?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Read-External-file-last-observation-value/m-p/25438#M5769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have a csv file and its generated by others people. the delimiter used is comma. it had a header inside the file and so call a "end of file" statment indicate the EOF.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Is there any way to check sas will read until EOF only? and how its does if the file not reached read until EOF ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please help&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>Fri, 07 Oct 2011 05:50:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Read-External-file-last-observation-value/m-p/25438#M5769</guid>
      <dc:creator>Liangck</dc:creator>
      <dc:date>2011-10-07T05:50:55Z</dc:date>
    </item>
    <item>
      <title>Read External file last observation value?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Read-External-file-last-observation-value/m-p/25439#M5770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be helpful if you can post the content of this csv file.&lt;/P&gt;&lt;P&gt;Here is an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;data want(keep=last_obs);
 infile 'c:\test.csv' length=len end=last;
 length _obs $ 200;
 retain _obs;
 last_obs=_obs;
 input _obs $varying200. len;
 if last then do;output;stop;end;
run;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 06:30:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Read-External-file-last-observation-value/m-p/25439#M5770</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-10-07T06:30:05Z</dc:date>
    </item>
    <item>
      <title>Read External file last observation value?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Read-External-file-last-observation-value/m-p/25440#M5771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ksharp:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i did it in more tedios and bad way to detect there is a End of file statment.&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Liangck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 02:35:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Read-External-file-last-observation-value/m-p/25440#M5771</guid>
      <dc:creator>Liangck</dc:creator>
      <dc:date>2011-10-12T02:35:49Z</dc:date>
    </item>
  </channel>
</rss>

