<?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 FINFO function returns null value in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/FINFO-function-returns-null-value/m-p/765603#M30564</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to get the last modified date of a located file with FINFO function. I am using following code part for this but I am not getting any value and "modifydt" returns null. Could you please give a feedback on how I should fix this? thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS Enterprise Guide Version:&amp;nbsp;7.15&amp;nbsp;&lt;/P&gt;&lt;P&gt;Program:&lt;/P&gt;&lt;PRE&gt;data info (keep=modifydt);
rc = filename("onefile","C:\Users\sdmrl\Desktop\test.xls");
fid = fopen("onefile");
modifydt = FINFO(fid,"Last Modified");
run;&lt;/PRE&gt;</description>
    <pubDate>Thu, 02 Sep 2021 11:47:38 GMT</pubDate>
    <dc:creator>sdemirel</dc:creator>
    <dc:date>2021-09-02T11:47:38Z</dc:date>
    <item>
      <title>FINFO function returns null value</title>
      <link>https://communities.sas.com/t5/New-SAS-User/FINFO-function-returns-null-value/m-p/765603#M30564</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to get the last modified date of a located file with FINFO function. I am using following code part for this but I am not getting any value and "modifydt" returns null. Could you please give a feedback on how I should fix this? thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS Enterprise Guide Version:&amp;nbsp;7.15&amp;nbsp;&lt;/P&gt;&lt;P&gt;Program:&lt;/P&gt;&lt;PRE&gt;data info (keep=modifydt);
rc = filename("onefile","C:\Users\sdmrl\Desktop\test.xls");
fid = fopen("onefile");
modifydt = FINFO(fid,"Last Modified");
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 Sep 2021 11:47:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/FINFO-function-returns-null-value/m-p/765603#M30564</guid>
      <dc:creator>sdemirel</dc:creator>
      <dc:date>2021-09-02T11:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: FINFO function returns null value</title>
      <link>https://communities.sas.com/t5/New-SAS-User/FINFO-function-returns-null-value/m-p/765606#M30565</link>
      <description>&lt;P&gt;Most likely your SAS workspace server process is running on a remote server and does not have access to your desktop computer's storage.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2021 11:52:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/FINFO-function-returns-null-value/m-p/765606#M30565</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-09-02T11:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: FINFO function returns null value</title>
      <link>https://communities.sas.com/t5/New-SAS-User/FINFO-function-returns-null-value/m-p/765611#M30566</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/395919"&gt;@sdemirel&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to get the last modified date of a located file with FINFO function. I am using following code part for this but I am not getting any value and "modifydt" returns null. Could you please give a feedback on how I should fix this? thanks in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS Enterprise Guide Version:&amp;nbsp;7.15&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Program:&lt;/P&gt;
&lt;PRE&gt;data info (keep=modifydt);
rc = filename("onefile","C:\Users\sdmrl\Desktop\test.xls");
fid = fopen("onefile");
modifydt = FINFO(fid,"Last Modified");
run;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If your value for RC is anything other than 0 the filename statement failed to assign a fileref.&lt;/P&gt;
&lt;P&gt;If your value for FID is 0 it failed to open the file.&lt;/P&gt;
&lt;P&gt;In either of the above fail then pretty much expect FINFO to fail.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2021 12:11:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/FINFO-function-returns-null-value/m-p/765611#M30566</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-09-02T12:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: FINFO function returns null value</title>
      <link>https://communities.sas.com/t5/New-SAS-User/FINFO-function-returns-null-value/m-p/765612#M30567</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked the values for both and it seems to RC and FID is zero ('0'). In this case,&amp;nbsp;&lt;SPAN&gt;it failed to open the file&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Sep 2021 12:17:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/FINFO-function-returns-null-value/m-p/765612#M30567</guid>
      <dc:creator>sdemirel</dc:creator>
      <dc:date>2021-09-02T12:17:41Z</dc:date>
    </item>
  </channel>
</rss>

