<?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: Import file from last date in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Import-file-from-last-date/m-p/517909#M140094</link>
    <description>&lt;P&gt;This macro has a few limitations such as requiring pipe access, expecting an English language OS, and expecting AM PM times rather than a&amp;nbsp;24 hour clock.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that's not your setup, a much&amp;nbsp;more usable&amp;nbsp;(but less feature-rich)&amp;nbsp;macro is provided &lt;A href="https://communities.sas.com/t5/SAS-Enterprise-Guide/without-using-quot-pipe-quot-option/m-p/217936#M16397" target="_self"&gt;here&lt;/A&gt; by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32"&gt;@BrunoMueller&lt;/a&gt;. Still for Windows only though.&lt;/P&gt;</description>
    <pubDate>Sun, 02 Dec 2018 20:54:17 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2018-12-02T20:54:17Z</dc:date>
    <item>
      <title>Import file from last date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-file-from-last-date/m-p/517851#M140080</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;Let's say that there are multiple &amp;nbsp;txt files with different dates.&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;A181127.TXT&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;A181128.TXT&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;A181129.TXT&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;A181130.TXT&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The task is to tell SAS to import one file only that will be the file with last date.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;How can I do it please?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;One option is to find the last file by its file name which has date.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Other&amp;nbsp;&amp;nbsp;option is to find the last file by the date it was created (Import the file that was created last)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Joe&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Dec 2018 12:17:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-file-from-last-date/m-p/517851#M140080</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2018-12-02T12:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: Import file from last date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-file-from-last-date/m-p/517852#M140081</link>
      <description>&lt;P&gt;You could use the %DIRLISTWIN macro to read the file names and file dates.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/24/820.html" target="_blank"&gt;http://support.sas.com/kb/24/820.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Dec 2018 12:43:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-file-from-last-date/m-p/517852#M140081</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-12-02T12:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Import file from last date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-file-from-last-date/m-p/517909#M140094</link>
      <description>&lt;P&gt;This macro has a few limitations such as requiring pipe access, expecting an English language OS, and expecting AM PM times rather than a&amp;nbsp;24 hour clock.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that's not your setup, a much&amp;nbsp;more usable&amp;nbsp;(but less feature-rich)&amp;nbsp;macro is provided &lt;A href="https://communities.sas.com/t5/SAS-Enterprise-Guide/without-using-quot-pipe-quot-option/m-p/217936#M16397" target="_self"&gt;here&lt;/A&gt; by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32"&gt;@BrunoMueller&lt;/a&gt;. Still for Windows only though.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Dec 2018 20:54:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-file-from-last-date/m-p/517909#M140094</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-12-02T20:54:17Z</dc:date>
    </item>
  </channel>
</rss>

