<?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: Retrieve file size, create time, and last modified date of a file within Sharepoint document lib in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Retrieve-file-size-create-time-and-last-modified-date-of-a-file/m-p/597133#M172021</link>
    <description>&lt;P&gt;You need to specify a device type. URL in your case.&lt;/P&gt;
&lt;P&gt;It's all in the documentation.&lt;/P&gt;
&lt;P&gt;See &lt;A href="https://documentation.sas.com/?docsetId=lestmtsglobal&amp;amp;docsetTarget=p05r9vhhqbhfzun1qo9mw64s4700.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Oct 2019 22:31:20 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2019-10-16T22:31:20Z</dc:date>
    <item>
      <title>Retrieve file size, create time, and last modified date of a file within Sharepoint document library</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retrieve-file-size-create-time-and-last-modified-date-of-a-file/m-p/597116#M172014</link>
      <description>&lt;P&gt;I am seeking to use the code in this usage note&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/40/934.html" target="_blank"&gt;http://support.sas.com/kb/40/934.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;but applied to a file that resides within a Sharepoint document library. I took a stab at putting in the http address, like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;/** Non-macro technique **/ &lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;                                                                                                            
filename fileref 'http://sites/philtest/Shared%20Documents/runs.xlsx'; &lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;                                                                                                         
data a(drop=fid); &lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;                                                                                                                      
   infile fileref truncover obs=1; &lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;                                                                                                      
   fid=fopen('fileref'); &lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;                                                                                                                
   Bytes=finfo(fid,'File Size (bytes)');&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;                                                                                                 
   crdate=finfo(fid,'Create Time'); &lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;                                                                                                     
   moddate=finfo(fid,'Last Modified'); &lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;                                                                                                  
run; &lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;                                                                                                                                   
                                                                                                                                        
proc print;                                                                                                                             
run;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I get the error&lt;/P&gt;
&lt;P&gt;ERROR: A component of C:\sas\sasconfig\Lev1\SASApp\http:\\sites\philtest\Shared%20Documents\runs.xlsx is not &lt;BR /&gt;a directory.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would welcome any hints on how to adjust my code to get this to work. Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using SAS 9.04 TS1M6&amp;nbsp; EG 7.1&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 21:45:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retrieve-file-size-create-time-and-last-modified-date-of-a-file/m-p/597116#M172014</guid>
      <dc:creator>Rodcjones</dc:creator>
      <dc:date>2019-10-16T21:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve file size, create time, and last modified date of a file within Sharepoint document lib</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retrieve-file-size-create-time-and-last-modified-date-of-a-file/m-p/597133#M172021</link>
      <description>&lt;P&gt;You need to specify a device type. URL in your case.&lt;/P&gt;
&lt;P&gt;It's all in the documentation.&lt;/P&gt;
&lt;P&gt;See &lt;A href="https://documentation.sas.com/?docsetId=lestmtsglobal&amp;amp;docsetTarget=p05r9vhhqbhfzun1qo9mw64s4700.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2019 22:31:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retrieve-file-size-create-time-and-last-modified-date-of-a-file/m-p/597133#M172021</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-10-16T22:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve file size, create time, and last modified date of a file within Sharepoint document lib</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retrieve-file-size-create-time-and-last-modified-date-of-a-file/m-p/597170#M172043</link>
      <description>&lt;P&gt;And if you get the device type working, this macro may give you some code ideas, even if you don't use the macro itself:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/scottbass/SAS/blob/master/Macro/dirlist.sas" target="_blank"&gt;https://github.com/scottbass/SAS/blob/master/Macro/dirlist.sas&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 04:54:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retrieve-file-size-create-time-and-last-modified-date-of-a-file/m-p/597170#M172043</guid>
      <dc:creator>ScottBass</dc:creator>
      <dc:date>2019-10-17T04:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve file size, create time, and last modified date of a file within Sharepoint document lib</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retrieve-file-size-create-time-and-last-modified-date-of-a-file/m-p/598492#M172593</link>
      <description>&lt;P&gt;I'm still unable to get it to work -- same error -- despite using URL. My best guess at this point is that AUTHODOMAIN= might be needed to get me through to the site (which is an on-prem SharePoint document library). Still working on it.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 19:09:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retrieve-file-size-create-time-and-last-modified-date-of-a-file/m-p/598492#M172593</guid>
      <dc:creator>Rodcjones</dc:creator>
      <dc:date>2019-10-22T19:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve file size, create time, and last modified date of a file within Sharepoint document lib</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retrieve-file-size-create-time-and-last-modified-date-of-a-file/m-p/598514#M172601</link>
      <description>&lt;P&gt;Yes, Active Directory probably demands proper authentication.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2019 20:09:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retrieve-file-size-create-time-and-last-modified-date-of-a-file/m-p/598514#M172601</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-10-22T20:09:53Z</dc:date>
    </item>
  </channel>
</rss>

