<?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: Retrieving File Details (Last Modified) When Using Filename FTP Access Method in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Retrieving-File-Details-Last-Modified-When-Using-Filename-FTP/m-p/783091#M249657</link>
    <description>&lt;P&gt;The FINFO function is only for files that are physically present in the filespace of the SAS session. To retrieve metadata of remote files, you would need to use external FTP (requiring that OPTIONS XCMD is enabled) to retrieve a file listing from which you can pull the modification timestamp.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Nov 2021 09:46:56 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2021-11-30T09:46:56Z</dc:date>
    <item>
      <title>Retrieving File Details (Last Modified) When Using Filename FTP Access Method</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retrieving-File-Details-Last-Modified-When-Using-Filename-FTP/m-p/782997#M249621</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am reading in a .txt file from an FTP using the filename statement. I have successfully read in the file, but I am wanting to add a column for the last modified date as it appears on the FTP. I am aware of the FINFO(fid,'Last Modified'); option, but I cannot seem to get it to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to easily capture the last modified date for the file that I am reading in using the filename statement FTP access method?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The end goal for me is to automate the SAS program to run and pull in the file every time the file is updated on the FTP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 20:48:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retrieving-File-Details-Last-Modified-When-Using-Filename-FTP/m-p/782997#M249621</guid>
      <dc:creator>CR-Horton</dc:creator>
      <dc:date>2021-11-29T20:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving File Details (Last Modified) When Using Filename FTP Access Method</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retrieving-File-Details-Last-Modified-When-Using-Filename-FTP/m-p/783075#M249647</link>
      <description>&lt;P&gt;Where does the date go? Where's that new column?&lt;/P&gt;
&lt;P&gt;Is it the modified date of the file on the FTP server you want to use?&lt;BR /&gt;I doubt it is kept when the file's download, or accessible with the FINFO() function. Can you get a DSID when you OPEN() the file?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 07:11:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retrieving-File-Details-Last-Modified-When-Using-Filename-FTP/m-p/783075#M249647</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-11-30T07:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving File Details (Last Modified) When Using Filename FTP Access Method</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retrieving-File-Details-Last-Modified-When-Using-Filename-FTP/m-p/783091#M249657</link>
      <description>&lt;P&gt;The FINFO function is only for files that are physically present in the filespace of the SAS session. To retrieve metadata of remote files, you would need to use external FTP (requiring that OPTIONS XCMD is enabled) to retrieve a file listing from which you can pull the modification timestamp.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2021 09:46:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retrieving-File-Details-Last-Modified-When-Using-Filename-FTP/m-p/783091#M249657</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-11-30T09:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving File Details (Last Modified) When Using Filename FTP Access Method</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retrieving-File-Details-Last-Modified-When-Using-Filename-FTP/m-p/785610#M250747</link>
      <description>Thanks for the response, Chris.&lt;BR /&gt;&lt;BR /&gt;Yes, I was hoping just to add the modified date as another column in the dataset. Also, correct, it's the modified date of the file on the FTP.&lt;BR /&gt;&lt;BR /&gt;I am still looking into what can be done and also considering Kurt's comment.</description>
      <pubDate>Sun, 12 Dec 2021 01:16:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retrieving-File-Details-Last-Modified-When-Using-Filename-FTP/m-p/785610#M250747</guid>
      <dc:creator>CR-Horton</dc:creator>
      <dc:date>2021-12-12T01:16:15Z</dc:date>
    </item>
  </channel>
</rss>

