<?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: How to take file created date in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-take-file-created-date/m-p/611249#M76796</link>
    <description>&lt;P&gt;I agree with your points, Thank you for your valuable comment.&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Dec 2019 10:22:23 GMT</pubDate>
    <dc:creator>Sathish_jammy</dc:creator>
    <dc:date>2019-12-12T10:22:23Z</dc:date>
    <item>
      <title>How to take file created date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-take-file-created-date/m-p/611237#M76792</link>
      <description>I have one file .path is 'D:\testing.xlsx' &lt;BR /&gt;&lt;BR /&gt;How to take above file created date</description>
      <pubDate>Thu, 12 Dec 2019 09:09:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-take-file-created-date/m-p/611237#M76792</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2019-12-12T09:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to take file created date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-take-file-created-date/m-p/611243#M76793</link>
      <description>&lt;P&gt;Use the file functions &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=p1fr3ny0ek8sr9n1pujj2om3bia7.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;fope&lt;/A&gt;n, &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=n0obx7o9ceaq31n1xwpddcub8d7f.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;foptnum&lt;/A&gt;, &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=n1ocdzkn9uhsa7n1qv3wwp4d3dot.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;foptname&lt;/A&gt; and &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=p0cpuq4ew0dxipn1vtravlludjm7.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;finfo&lt;/A&gt;:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename fref 'D:\testing.xlsx';

data fileinfo;
fid = fopen("fref");
do i = 1 to foptnum(fid);
  opt = foptname(fid,i);
  val = finfo(fid,opt);
  output;
end;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;One of the information items will contain what you look for. Be aware that the names and values are specific to the operating system and the system's locale.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 09:51:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-take-file-created-date/m-p/611243#M76793</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-12-12T09:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to take file created date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-take-file-created-date/m-p/611244#M76794</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  input filename$1024.;
cards;
D:\testing.xlsx
;

data want;
  set have;
  rcs = filename("fileref", filename);
  fid=fopen('fileref');
  Bytes=finfo(fid,'File Size (bytes)');
  crdate=finfo(fid,'Create Time');
  moddate=finfo(fid,'Last Modified');
run;

proc print;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Dec 2019 09:51:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-take-file-created-date/m-p/611244#M76794</guid>
      <dc:creator>Sathish_jammy</dc:creator>
      <dc:date>2019-12-12T09:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to take file created date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-take-file-created-date/m-p/611247#M76795</link>
      <description>&lt;P&gt;As I said, the optnames are locale- and system-specific. In my case (AIX, German), there is no "Create Time" at all (it is misleading information anyway), but a "Zuletzt geändert" (modification time).&lt;/P&gt;
&lt;P&gt;This is why I strongly prefer to use system commands for this, as they can be directed by parameters (see GNU ls) to return specific information in a specific format (like ISO-timestamps), independent of the current environment.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 10:18:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-take-file-created-date/m-p/611247#M76795</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-12-12T10:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to take file created date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-take-file-created-date/m-p/611249#M76796</link>
      <description>&lt;P&gt;I agree with your points, Thank you for your valuable comment.&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 10:22:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-take-file-created-date/m-p/611249#M76796</guid>
      <dc:creator>Sathish_jammy</dc:creator>
      <dc:date>2019-12-12T10:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to take file created date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-take-file-created-date/m-p/611260#M76797</link>
      <description>This code is not working ,giving zero observations</description>
      <pubDate>Thu, 12 Dec 2019 11:36:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-take-file-created-date/m-p/611260#M76797</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2019-12-12T11:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to take file created date</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-take-file-created-date/m-p/611262#M76798</link>
      <description>&lt;P&gt;Please post the log. "Does not work" on its own is USELESS.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 11:38:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-take-file-created-date/m-p/611262#M76798</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-12-12T11:38:58Z</dc:date>
    </item>
  </channel>
</rss>

