<?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 Copying a file to SHAREPOINT in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Copying-a-file-to-SHAREPOINT/m-p/467719#M285369</link>
    <description>&lt;P&gt;Hi! Hoping someone can get me over the last hurdle...&lt;/P&gt;&lt;P&gt;I need to pull a file from FTP and PLACE it in a Sharepoint directory&lt;/P&gt;&lt;P&gt;Got the FTP part done and the file copies to my local SAS directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im stuck getting it out to the sharepoint. Ive tried to use Samba, and it completes (with no errors) but doesnt actually work&lt;/P&gt;&lt;P&gt;So I tried using PROC HTTP but its unable to find valid certification path to requested target&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im guessing it might be the url (i will xxx some parts out)&lt;/P&gt;&lt;PRE&gt;FILENAME req "CID.csv";
FILENAME resp "TEST.CSV";

PROC HTTP
URL="https://eng.sharepoint.xxxxx.com/Access/Access%20Mng%20%20Inv/Forms/Allitems.asp"
METHOD="POST"
IN=req
CT="application/JSON"
OUT=resp
WEUSERNAME="loginname"&lt;BR /&gt;WEBPASSWORD="thepassword";
RUN;&lt;/PRE&gt;&lt;P&gt;ERROR: javax.net.sslSSLHandshakeException....&lt;/P&gt;&lt;P&gt;So im thinking its not connecting/authorizing correctly. prob wrong URL? (I copy/pasted from the sharepoint view)&lt;/P&gt;&lt;P&gt;FYI I found that code somewhere&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: I just found a post about using cURL ... I will look into that as well&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jun 2018 17:01:44 GMT</pubDate>
    <dc:creator>StaticFX</dc:creator>
    <dc:date>2018-06-05T17:01:44Z</dc:date>
    <item>
      <title>Copying a file to SHAREPOINT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copying-a-file-to-SHAREPOINT/m-p/467719#M285369</link>
      <description>&lt;P&gt;Hi! Hoping someone can get me over the last hurdle...&lt;/P&gt;&lt;P&gt;I need to pull a file from FTP and PLACE it in a Sharepoint directory&lt;/P&gt;&lt;P&gt;Got the FTP part done and the file copies to my local SAS directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im stuck getting it out to the sharepoint. Ive tried to use Samba, and it completes (with no errors) but doesnt actually work&lt;/P&gt;&lt;P&gt;So I tried using PROC HTTP but its unable to find valid certification path to requested target&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im guessing it might be the url (i will xxx some parts out)&lt;/P&gt;&lt;PRE&gt;FILENAME req "CID.csv";
FILENAME resp "TEST.CSV";

PROC HTTP
URL="https://eng.sharepoint.xxxxx.com/Access/Access%20Mng%20%20Inv/Forms/Allitems.asp"
METHOD="POST"
IN=req
CT="application/JSON"
OUT=resp
WEUSERNAME="loginname"&lt;BR /&gt;WEBPASSWORD="thepassword";
RUN;&lt;/PRE&gt;&lt;P&gt;ERROR: javax.net.sslSSLHandshakeException....&lt;/P&gt;&lt;P&gt;So im thinking its not connecting/authorizing correctly. prob wrong URL? (I copy/pasted from the sharepoint view)&lt;/P&gt;&lt;P&gt;FYI I found that code somewhere&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: I just found a post about using cURL ... I will look into that as well&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 17:01:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copying-a-file-to-SHAREPOINT/m-p/467719#M285369</guid>
      <dc:creator>StaticFX</dc:creator>
      <dc:date>2018-06-05T17:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Copying a file to SHAREPOINT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copying-a-file-to-SHAREPOINT/m-p/467949#M285370</link>
      <description>&lt;P&gt;Samba should work: You are just copying to a UNC path.&lt;/P&gt;
&lt;P&gt;Have you tried copying manually to the same path?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 03:35:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copying-a-file-to-SHAREPOINT/m-p/467949#M285370</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-06-06T03:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Copying a file to SHAREPOINT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copying-a-file-to-SHAREPOINT/m-p/468020#M285371</link>
      <description>&lt;P&gt;Thats what i thought. I can map to it, "open with explorer", and copy to it that way... yet I try Samba and it doesnt work. Unless maybe im not getting the settings correct. I use Samba for copying to our share drives... maybe its a little different?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sample:&lt;/P&gt;&lt;P&gt;in windows its:&lt;/P&gt;&lt;P&gt;&lt;A href="https://eng.sharepoint.company.com/Access/Access" target="_blank"&gt;https://eng.sharepoint.company.com/Access/Access&lt;/A&gt; Sub folder Name/Subfolder&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so In Samba I did:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;X "cd /home/myname/CID; &amp;amp;SAMBA //eng.sharepoint.company.com MyPassWord -U MyUserName -D 'Access\ Access Sub folder\subfolder' -c 'prompt; put &amp;amp;FNAME'";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- I was just told that it may be a network issue as the Sharepoint is on a different server from SAS and does not allow some connections...&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 13:25:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copying-a-file-to-SHAREPOINT/m-p/468020#M285371</guid>
      <dc:creator>StaticFX</dc:creator>
      <dc:date>2018-06-06T13:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Copying a file to SHAREPOINT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copying-a-file-to-SHAREPOINT/m-p/468216#M285372</link>
      <description>&lt;P&gt;A UNC path looks like this: &lt;FONT face="courier new,courier"&gt;\\server\share\subfolders&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have such a path, check that the SAS server can access it by running:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;filename DIR pipe "dir ""\\server\share\subfolders"" /s ";&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;data T;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; infile DIR;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; input;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;&amp;nbsp; put _infile_;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Replace the &lt;FONT face="courier new,courier"&gt;dir&lt;/FONT&gt; command by your own connection command to see what the OS returns.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If the path is accessible, the function &lt;FONT face="courier new,courier"&gt;fcopy&lt;/FONT&gt;() should&amp;nbsp;do the trick.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If the only access is http, then this method is not usable obviously.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 23:09:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copying-a-file-to-SHAREPOINT/m-p/468216#M285372</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-06-06T23:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Copying a file to SHAREPOINT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copying-a-file-to-SHAREPOINT/m-p/468342#M285373</link>
      <description>&lt;P&gt;Well after hours of testing, trying, and pulling out my hair, it seems that It cannot be done this way on our systems. The Sharepoint system is locked down from any connection outside that network. Turns out we are setting up a system to be able to email the file to the folder in sharepoint... so Thanks for your help! I guess I just have to wait for now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 12:46:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copying-a-file-to-SHAREPOINT/m-p/468342#M285373</guid>
      <dc:creator>StaticFX</dc:creator>
      <dc:date>2018-06-07T12:46:59Z</dc:date>
    </item>
  </channel>
</rss>

