<?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: Getting create and modified dates from directory listing in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Getting-create-and-modified-dates-from-directory-listing/m-p/261781#M51005</link>
    <description>&lt;P&gt;In addition to all the good comments above, you could investigate the SAS external file functions Dopen DNUM Dread FOPTNUM FOPTNAME FINFO.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These functions are quite as system dependent as the DIR pipe. Not to mention that Microsoft changes options on things like the DIR command with different versions.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Apr 2016 15:07:14 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-04-06T15:07:14Z</dc:date>
    <item>
      <title>Getting create and modified dates from directory listing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-create-and-modified-dates-from-directory-listing/m-p/261684#M50968</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to get the create and modified dates from a directory listing using filename and pipe.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename dump pipe "dir ""&amp;amp;&amp;amp;folder&amp;amp;i..\&amp;amp;&amp;amp;filename&amp;amp;i..*.*"" /b " ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This is the line that I'm doing to pull all the files that start with a specific file name.&amp;nbsp; This returnes all the file names, but no other information.&amp;nbsp; I know it has something to do with "/b" but I'm unable to find a good descripiton of the different modifiers.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm guessing it will add the dates along with the name in one character field, correct?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 12:41:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-create-and-modified-dates-from-directory-listing/m-p/261684#M50968</guid>
      <dc:creator>jerry898969</dc:creator>
      <dc:date>2016-04-06T12:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Getting create and modified dates from directory listing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-create-and-modified-dates-from-directory-listing/m-p/261687#M50971</link>
      <description>&lt;P&gt;Two ways to get help on the dir command:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Start a Windows command window and enter dir /?.&lt;/LI&gt;
&lt;LI&gt;Google "dir command windows".&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Wed, 06 Apr 2016 12:58:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-create-and-modified-dates-from-directory-listing/m-p/261687#M50971</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2016-04-06T12:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Getting create and modified dates from directory listing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-create-and-modified-dates-from-directory-listing/m-p/261698#M50972</link>
      <description>&lt;P&gt;Be aware that the "file creation timestamp" in Windows may be complete bogus, depending on your point of view.&lt;/P&gt;
&lt;P&gt;Create a file called xxx.txt today.&lt;/P&gt;
&lt;P&gt;One month from now, once again create a file called xxx.txt in the same directory (don't delete the original file before that).&lt;/P&gt;
&lt;P&gt;Look at the creation timestamp (dir /tc) and be surprised ("File system tunneling").&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 13:35:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-create-and-modified-dates-from-directory-listing/m-p/261698#M50972</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-04-06T13:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Getting create and modified dates from directory listing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-create-and-modified-dates-from-directory-listing/m-p/261702#M50973</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser﻿&lt;/a&gt;&amp;nbsp;has really pulled the main issue here. &amp;nbsp;Don't rely on Windows dates/times for anything, there are numerous ways to fiddle those. &amp;nbsp;Why do you need this information? &amp;nbsp;If it is for audit purpose, then you would need to get your version control system date/times or other locked down system dates/times that you can't tamper with. &amp;nbsp;Otherwise the process is meaningless. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;If its just to find a specific set of files, then there is probably betters was of organising it to find this information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/b = bare format by the way.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 13:43:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-create-and-modified-dates-from-directory-listing/m-p/261702#M50973</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-04-06T13:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Getting create and modified dates from directory listing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-create-and-modified-dates-from-directory-listing/m-p/261781#M51005</link>
      <description>&lt;P&gt;In addition to all the good comments above, you could investigate the SAS external file functions Dopen DNUM Dread FOPTNUM FOPTNAME FINFO.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These functions are quite as system dependent as the DIR pipe. Not to mention that Microsoft changes options on things like the DIR command with different versions.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 15:07:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-create-and-modified-dates-from-directory-listing/m-p/261781#M51005</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-04-06T15:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Getting create and modified dates from directory listing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-create-and-modified-dates-from-directory-listing/m-p/261856#M51034</link>
      <description>Thank you everyone. &lt;BR /&gt;&lt;BR /&gt;The date on the sad file will be used to compare to the same set of files in our archive and production data.  &lt;BR /&gt;We use the creation date to let us compare to make sure we have the latest file and if not we know we have to do a release.</description>
      <pubDate>Wed, 06 Apr 2016 17:23:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-create-and-modified-dates-from-directory-listing/m-p/261856#M51034</guid>
      <dc:creator>jerry898969</dc:creator>
      <dc:date>2016-04-06T17:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Getting create and modified dates from directory listing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-create-and-modified-dates-from-directory-listing/m-p/261946#M51048</link>
      <description>&lt;P&gt;The creation date will not give you the latest file. For that, you need the modification timestamp.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 22:02:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-create-and-modified-dates-from-directory-listing/m-p/261946#M51048</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-04-06T22:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Getting create and modified dates from directory listing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-create-and-modified-dates-from-directory-listing/m-p/262458#M51238</link>
      <description>&lt;P&gt;Thank you Kurt,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That is what I need.&amp;nbsp; I need the modification timestamp from a directory listing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2016 14:46:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-create-and-modified-dates-from-directory-listing/m-p/262458#M51238</guid>
      <dc:creator>jerry898969</dc:creator>
      <dc:date>2016-04-08T14:46:36Z</dc:date>
    </item>
  </channel>
</rss>

