<?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: taking latest available date  from file in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/taking-latest-available-date-from-file/m-p/141877#M37821</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;test_file_123567_8756453&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;test_file_365435_8755454&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;test_file_025489_4587001&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Sep 2014 04:08:11 GMT</pubDate>
    <dc:creator>woo</dc:creator>
    <dc:date>2014-09-12T04:08:11Z</dc:date>
    <item>
      <title>taking latest available date  from file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/taking-latest-available-date-from-file/m-p/141873#M37817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello please help me on how can i use latest available date from all similar list of files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;lets say i have 50 text files with same name uploaded on different date in directory "d:\woo" and lets say latest date file is &lt;SPAN style="text-decoration: underline;"&gt;9/11/2014&lt;/SPAN&gt; and i want to use that file - how can i get that file in use...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*i am using this code to read all files at once*/&lt;/P&gt;&lt;P&gt;/*but then how can i use latest file*/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;%let ext=txt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;%let dir=f:\woo\;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;data files_list;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;length fname1 $200;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;infile "dir &amp;amp;dir.*.&amp;amp;ext /tw " pipe truncover lrecl=3000 ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;input fname1 $200.;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks - &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 23:04:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/taking-latest-available-date-from-file/m-p/141873#M37817</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2014-09-11T23:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: taking latest available date  from file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/taking-latest-available-date-from-file/m-p/141874#M37818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you can't have multiple files with the same name in a directory, your description of the problem is missing something. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are the files named?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 23:16:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/taking-latest-available-date-from-file/m-p/141874#M37818</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-09-11T23:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: taking latest available date  from file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/taking-latest-available-date-from-file/m-p/141875#M37819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;oppsss...my bad...files are like this;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;filename&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date_modified&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;test_file_123567_8756453&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 09/11/2014&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;test_file_365435_8755454&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 08/11/2014&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;test_file_025489_4587001&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 07/10/2014&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 23:27:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/taking-latest-available-date-from-file/m-p/141875#M37819</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2014-09-11T23:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: taking latest available date  from file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/taking-latest-available-date-from-file/m-p/141876#M37820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does your file_list dataset look like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 00:04:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/taking-latest-available-date-from-file/m-p/141876#M37820</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-09-12T00:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: taking latest available date  from file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/taking-latest-available-date-from-file/m-p/141877#M37821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;test_file_123567_8756453&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;test_file_365435_8755454&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;test_file_025489_4587001&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 04:08:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/taking-latest-available-date-from-file/m-p/141877#M37821</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2014-09-12T04:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: taking latest available date  from file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/taking-latest-available-date-from-file/m-p/141878#M37822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Run the dir command in a windows cmd line to see what the output looks like then modify your input statement to read the correct variables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; sort by date and take the first. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm also 99% sure this question has been asked on the forum before so searching may be easier. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 04:51:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/taking-latest-available-date-from-file/m-p/141878#M37822</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-09-12T04:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: taking latest available date  from file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/taking-latest-available-date-from-file/m-p/141879#M37823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is an example:&lt;/P&gt;&lt;P&gt;%let ext=txt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let dir=c:\path\;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data files_list;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;length fname1 $200;&lt;/P&gt;&lt;P&gt;length date 8;&lt;/P&gt;&lt;P&gt;length time $5;&lt;/P&gt;&lt;P&gt;length size $10;&lt;/P&gt;&lt;P&gt;length fname $128;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;infile "dir &amp;amp;dir.*.&amp;amp;ext /tw " pipe truncover lrecl=3000 ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;input fname1 $200.;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if index(fname1, "&amp;amp;ext");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date = input(scan(fname1,1,' '),DDMMYY10.); format date YYMMDD10.;&lt;/P&gt;&lt;P&gt;time = scan(fname1,2,' ');&lt;/P&gt;&lt;P&gt;size = scan(fname1,3,' ');&lt;/P&gt;&lt;P&gt;fname = scan(fname1,4,' ');&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;proc sort data=files_list;&lt;/P&gt;&lt;P&gt;by date time;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what it looks like in the sorted dataset:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="files_list.png" class="jive-image-thumbnail jive-image" height="122" src="https://communities.sas.com/legacyfs/online/7400_files_list.png" width="687" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 05:59:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/taking-latest-available-date-from-file/m-p/141879#M37823</guid>
      <dc:creator>bl_jyskebank_dk</dc:creator>
      <dc:date>2014-09-12T05:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: taking latest available date  from file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/taking-latest-available-date-from-file/m-p/141880#M37824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of piping and analyzing that output you could use the dinfo function.&amp;nbsp; This sample gives a dir listing.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/hostwin/67279/HTML/default/viewer.htm#p0qzctpnc6pi8sn1qcuv81rls13c.htm#n10k6grg16q25dn17wxmhlf1bfv4" title="http://support.sas.com/documentation/cdl/en/hostwin/67279/HTML/default/viewer.htm#p0qzctpnc6pi8sn1qcuv81rls13c.htm#n10k6grg16q25dn17wxmhlf1bfv4"&gt;SAS(R) 9.4 Companion for Windows, Third Edition&lt;/A&gt; (dinfo proc)&lt;/P&gt;&lt;P&gt;Note the " error in the source example second tempdir, it is easy to correct&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code also runs unchanged under Unix only the returned list is different. The advantage is no failures in analyzing that returned output.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 09:16:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/taking-latest-available-date-from-file/m-p/141880#M37824</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-09-12T09:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: taking latest available date  from file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/taking-latest-available-date-from-file/m-p/141881#M37825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;infile "dir &amp;amp;dir.*.&amp;amp;ext /tw " pipe truncover lrecl=3000 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;In this infile statement, why we've used /tw?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 09:33:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/taking-latest-available-date-from-file/m-p/141881#M37825</guid>
      <dc:creator>RamKumar</dc:creator>
      <dc:date>2014-09-12T09:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: taking latest available date  from file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/taking-latest-available-date-from-file/m-p/141882#M37826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;//Tw is the windows command to include last modified time in the output. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 12:45:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/taking-latest-available-date-from-file/m-p/141882#M37826</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-09-12T12:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: taking latest available date  from file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/taking-latest-available-date-from-file/m-p/141883#M37827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds more like a question on how to use the DOS DIR command.&lt;/P&gt;&lt;P&gt;/tw - will tell it to use the WRITE date&lt;/P&gt;&lt;P&gt;/o-d - will tell it to sort with most recent first.&lt;/P&gt;&lt;P&gt;/b - will tell it to only list the names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; ext=txt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; dir=f:\woo\;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;_null_&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;infile&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;"dir /tw /o-d /b &amp;amp;dir.*.&amp;amp;ext"&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; pipe &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;truncover&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; obs=&lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; fname &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: teal; background: white;"&gt;$256.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;call&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; symputx(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;'fname'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;,fname);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; want ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;infile&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple; background: white;"&gt;"&amp;amp;dir.&amp;amp;fname"&lt;/SPAN&gt; &lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;....&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;....&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 13:40:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/taking-latest-available-date-from-file/m-p/141883#M37827</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-09-12T13:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: taking latest available date  from file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/taking-latest-available-date-from-file/m-p/141884#M37828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could be avoided using dinfo &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 14:02:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/taking-latest-available-date-from-file/m-p/141884#M37828</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-09-12T14:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: taking latest available date  from file</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/taking-latest-available-date-from-file/m-p/141885#M37829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks all for your quick response...i would go with PIPE option though...Thank you...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 16:05:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/taking-latest-available-date-from-file/m-p/141885#M37829</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2014-09-12T16:05:53Z</dc:date>
    </item>
  </channel>
</rss>

