<?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 export a file to sharepoint with SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-file-to-sharepoint-with-SAS/m-p/560913#M156942</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 May 2019 17:44:20 GMT</pubDate>
    <dc:creator>Red1</dc:creator>
    <dc:date>2019-05-22T17:44:20Z</dc:date>
    <item>
      <title>How to export a file to sharepoint with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-file-to-sharepoint-with-SAS/m-p/560742#M156883</link>
      <description>&lt;P&gt;I'm searching to export a file to Sharepoint with SAS, this is what I tried :&lt;/P&gt;&lt;PRE class="default prettyprint prettyprinted"&gt;&lt;CODE&gt;&lt;SPAN class="pln"&gt; filename input &lt;/SPAN&gt;&lt;SPAN class="str"&gt;"C:\Users\xxx.xxx\xxx\xxx\xxx\xxx\a.txt"&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;proc http url&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str"&gt;"https://xxx.sharepoint.com/xxx/xxx/xxx/xxxx/Espace%20Public.aspx"&lt;/SPAN&gt;
          &lt;SPAN class="kwd"&gt;in&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;input
          webusername&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str"&gt;"xxx.xxx@xxx.com"&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;          webpassword&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str"&gt;"XXX"&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;          method&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;=&lt;/SPAN&gt;&lt;SPAN class="str"&gt;"put"&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;;&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;         run&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So this code compilate with no errors but doesn't export the file, any help is welcome. Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 09:23:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-file-to-sharepoint-with-SAS/m-p/560742#M156883</guid>
      <dc:creator>Red1</dc:creator>
      <dc:date>2019-05-22T09:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a file to sharepoint with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-file-to-sharepoint-with-SAS/m-p/560816#M156906</link>
      <description>&lt;P&gt;If the authentication method used by the SharePoint is NTLM you would need an additional line in your PROC step.&lt;/P&gt;&lt;P&gt;Depending on wherther you are running on Windows or SAS, you would need to add one of these two lines:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Running on Windows (add this logic to your PROC step):&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;auth_ntlm;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Running on UNIX (Add this logic to your PROC step:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;auth_negotiate;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;See documentation - &lt;A href="http://support.sas.com/kb/42/054.html" target="_blank"&gt;http://support.sas.com/kb/42/054.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 12:57:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-file-to-sharepoint-with-SAS/m-p/560816#M156906</guid>
      <dc:creator>tsap</dc:creator>
      <dc:date>2019-05-22T12:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a file to sharepoint with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-file-to-sharepoint-with-SAS/m-p/560871#M156923</link>
      <description>&lt;P&gt;Thanks for your answer, when I test that I have an error :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;30         			auth_ntlm;
              _________
              22
              202
ERROR 22-322: Syntax error, expecting one of the following: ;, CT, HEADERIN, HEADEROUT, HTTP_TOKENAUTH, IN, JAVA_HTTP, METHOD, OUT, 
              PROXYHOST, PROXYPASSWORD, PROXYPORT, PROXYUSERNAME, URL, VERBOSE, WEBAUTHDOMAIN, WEBPASSWORD, WEBUSERNAME.  
ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 May 2019 15:03:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-file-to-sharepoint-with-SAS/m-p/560871#M156923</guid>
      <dc:creator>Red1</dc:creator>
      <dc:date>2019-05-22T15:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a file to sharepoint with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-file-to-sharepoint-with-SAS/m-p/560891#M156931</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/179155"&gt;@Red1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks for your answer, when I test that I have an error :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;30         			auth_ntlm;
              _________
              22
              202
ERROR 22-322: Syntax error, expecting one of the following: ;, CT, HEADERIN, HEADEROUT, HTTP_TOKENAUTH, IN, JAVA_HTTP, METHOD, OUT, 
              PROXYHOST, PROXYPASSWORD, PROXYPORT, PROXYUSERNAME, URL, VERBOSE, WEBAUTHDOMAIN, WEBPASSWORD, WEBUSERNAME.  
ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Please show entire proc or statement. Many syntax errors involve something before the indicated error.&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 16:52:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-file-to-sharepoint-with-SAS/m-p/560891#M156931</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-05-22T16:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a file to sharepoint with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-file-to-sharepoint-with-SAS/m-p/560895#M156933</link>
      <description>&lt;P&gt;did you add the 'auth_ntlm;' logic after the 'run' statement?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its hard to tell from the details you provided. If that is the case, to test out this additional logic, you will need to include it within the PROC HTTP data step (after 'PROC HTTP' and before the 'run' statement for the procedure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 17:03:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-file-to-sharepoint-with-SAS/m-p/560895#M156933</guid>
      <dc:creator>tsap</dc:creator>
      <dc:date>2019-05-22T17:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a file to sharepoint with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-file-to-sharepoint-with-SAS/m-p/560896#M156934</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1                                                          Le Système SAS                              17:01 Wednesday, May 22, 2019

1          ;*';*";*/;quit;run;
2          OPTIONS PAGENO=MIN;
3          %LET _CLIENTTASKLABEL='Programme (2)';
4          %LET _CLIENTPROJECTPATH='C:\XX\XXX\Projet.egp';
5          %LET _CLIENTPROJECTNAME='Projet.egp';
6          %LET _SASPROGRAMFILE=;
7          
8          ODS _ALL_ CLOSE;
9          OPTIONS DEV=ACTIVEX;
10         GOPTIONS XPIXELS=0 YPIXELS=0;
11         FILENAME EGSR TEMP;
12         ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR
13             STYLE=HtmlBlue
14             STYLESHEET=(URL="file:///D:/SAS/SASEnterpriseGuide/7.1/Styles/HtmlBlue.css")
15             NOGTITLE
16             NOGFOOTNOTE
17             GPATH=&amp;amp;sasworklocation
18             ENCODING=UTF8
19             options(rolap="on")
20         ;
NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR
21         
22         GOPTIONS ACCESSIBLE;
23          filename input "C:\Users\XXXXX\a.txt";
24         
25         proc http
25       ! url="https://XXX.sharepoint.com/Documents%20partages/Forms/AllItems.aspx?viewpath=%2FDocuments%20partages%2FForms%2FAl
25       ! lItems.aspx"
26                   in=input
27                   webusername="XX.XX@XX.com"
28         			webpassword=XXXXXXXXXXXX
29         			method="put"
30         			auth_ntlm;
              _________
              22
              202
ERROR 22-322: Syntax error, expecting one of the following: ;, CT, HEADERIN, HEADEROUT, HTTP_TOKENAUTH, IN, JAVA_HTTP, METHOD, OUT, 
              PROXYHOST, PROXYPASSWORD, PROXYPORT, PROXYUSERNAME, URL, VERBOSE, WEBAUTHDOMAIN, WEBPASSWORD, WEBUSERNAME.  
ERROR 202-322: The option or parameter is not recognized and will be ignored.
31         			run;

WARNING: RUN statement ignored due to previous errors. Submit QUIT; to terminate the procedure.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE HTTP used (Total process time):
      real time           0.00 secondes
      cpu time            0.01 secondes
      
32         
33         GOPTIONS NOACCESSIBLE;
34         %LET _CLIENTTASKLABEL=;
35         %LET _CLIENTPROJECTPATH=;
36         %LET _CLIENTPROJECTNAME=;
37         %LET _SASPROGRAMFILE=;
38         
39         ;*';*";*/;quit;run;
40         ODS _ALL_ CLOSE;
41         
42         
2                                                          Le Système SAS                              17:01 Wednesday, May 22, 2019

43         QUIT; RUN;
44         &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here it is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 17:03:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-file-to-sharepoint-with-SAS/m-p/560896#M156934</guid>
      <dc:creator>Red1</dc:creator>
      <dc:date>2019-05-22T17:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a file to sharepoint with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-file-to-sharepoint-with-SAS/m-p/560897#M156935</link>
      <description>&lt;P&gt;Sorry, I put it before run; like that :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc http url="https://xx.sharepoint.com/Documents%20partages/Forms/AllItems.aspx?viewpath=%2FDocuments%20partages%2FForms%2FAllItems.aspx"
in=input
webusername="xx@xx.com"
webpassword="xx"
method="put"
auth_ntlm;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 May 2019 17:07:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-file-to-sharepoint-with-SAS/m-p/560897#M156935</guid>
      <dc:creator>Red1</dc:creator>
      <dc:date>2019-05-22T17:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a file to sharepoint with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-file-to-sharepoint-with-SAS/m-p/560908#M156940</link>
      <description>&lt;P&gt;you can try running this logic to create the prochttp_check_return macro.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro prochttp_check_return(code);
%if %symexist(SYS_PROCHTTP_STATUS_CODE) ne 1 %then %do;
  %put ERROR: Expected &amp;amp;code., but a response was not received from
 the HTTP Procedure;
  %abort;
  %end;
%else %do;
  %if &amp;amp;SYS_PROCHTTP_STATUS_CODE. ne &amp;amp;code. %then %do;
   %put ERROR: Expected &amp;amp;code., but received &amp;amp;SYS_PROCHTTP_STATUS_CODE.
 &amp;amp;SYS_PROCHTTP_STATUS_PHRASE.;
   %abort;%end;
%end;
%mend;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then after your proc http logic, run this piece:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%prochttp_check_return(200);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then you check your log to see what error descriptions may be listed to explain what the issue is, no guarantees.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 17:37:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-file-to-sharepoint-with-SAS/m-p/560908#M156940</guid>
      <dc:creator>tsap</dc:creator>
      <dc:date>2019-05-22T17:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a file to sharepoint with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-file-to-sharepoint-with-SAS/m-p/560912#M156941</link>
      <description>&lt;P&gt;Here is the result :&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1                                                          Le Système SAS                              17:01 Wednesday, May 22, 2019

1          ;*';*";*/;quit;run;
2          OPTIONS PAGENO=MIN;
3          %LET _CLIENTTASKLABEL='Programme (2)';
4          %LET _CLIENTPROJECTPATH='C:\Users\xxx.XXX\Desktop\Stage\Mantis\testExport\Projet.egp';
5          %LET _CLIENTPROJECTNAME='Projet.egp';
6          %LET _SASPROGRAMFILE=;
7          
8          ODS _ALL_ CLOSE;
9          OPTIONS DEV=ACTIVEX;
10         GOPTIONS XPIXELS=0 YPIXELS=0;
11         FILENAME EGSR TEMP;
12         ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR
13             STYLE=HtmlBlue
14             STYLESHEET=(URL="file:///D:/SAS/SASEnterpriseGuide/7.1/Styles/HtmlBlue.css")
15             NOGTITLE
16             NOGFOOTNOTE
17             GPATH=&amp;amp;sasworklocation
18             ENCODING=UTF8
19             options(rolap="on")
20         ;
NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR
21         
22         GOPTIONS ACCESSIBLE;
23          filename input "C:\Users\xxx.XXX\Desktop\Stage\Mantis\testExport\a.txt";
24         
25         proc http
25       ! url="https://xxx.sharepoint.com/Documents%20partages/Forms/AllItems.aspx?viewpath=%2FDocuments%20partages%2FForms%2FAl
25       ! lItems.aspx"
26                   in=input
27                   webusername="xxx.xxx@xxx.com"
28         			webpassword=XXXXXXXXXXXX
29         			method="put"
30         			auth_ntlm;
              _________
              22
              202
ERROR 22-322: Syntax error, expecting one of the following: ;, CT, HEADERIN, HEADEROUT, HTTP_TOKENAUTH, IN, JAVA_HTTP, METHOD, OUT, 
              PROXYHOST, PROXYPASSWORD, PROXYPORT, PROXYUSERNAME, URL, VERBOSE, WEBAUTHDOMAIN, WEBPASSWORD, WEBUSERNAME.  
ERROR 202-322: The option or parameter is not recognized and will be ignored.
31         			run;

WARNING: RUN statement ignored due to previous errors. Submit QUIT; to terminate the procedure.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE HTTP used (Total process time):
      real time           0.00 secondes
      cpu time            0.00 secondes
      
32         
33         			%macro prochttp_check_return(code);
34         %if %symexist(SYS_PROCHTTP_STATUS_CODE) ne 1 %then %do;
35           %put ERROR: Expected &amp;amp;code., but a response was not received from
36          the HTTP Procedure;
37           %abort;
38           %end;
39         %else %do;
40           %if &amp;amp;SYS_PROCHTTP_STATUS_CODE. ne &amp;amp;code. %then %do;
41            %put ERROR: Expected &amp;amp;code., but received &amp;amp;SYS_PROCHTTP_STATUS_CODE.
42          &amp;amp;SYS_PROCHTTP_STATUS_PHRASE.;
2                                                          Le Système SAS                              17:01 Wednesday, May 22, 2019

43            %abort;%end;
44         %end;
45         %mend;
46         
47         
48         %prochttp_check_return(200);
ERROR: Expected 200, but a response was not received from  the HTTP Procedure
ERROR: Execution terminated by an %ABORT statement.
49         
50         GOPTIONS NOACCESSIBLE;
51         %LET _CLIENTTASKLABEL=;
52         %LET _CLIENTPROJECTPATH=;
53         %LET _CLIENTPROJECTNAME=;
54         %LET _SASPROGRAMFILE=;
55         
56         ;*';*";*/;quit;run;
57         ODS _ALL_ CLOSE;
58         
59         
60         QUIT; RUN;
61         

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 May 2019 17:42:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-file-to-sharepoint-with-SAS/m-p/560912#M156941</guid>
      <dc:creator>Red1</dc:creator>
      <dc:date>2019-05-22T17:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a file to sharepoint with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-file-to-sharepoint-with-SAS/m-p/560913#M156942</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 17:44:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-file-to-sharepoint-with-SAS/m-p/560913#M156942</guid>
      <dc:creator>Red1</dc:creator>
      <dc:date>2019-05-22T17:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a file to sharepoint with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-file-to-sharepoint-with-SAS/m-p/560971#M156965</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/179155"&gt;@Red1&lt;/a&gt;&amp;nbsp;running on Windows, you should be able to just copy the file with the host command:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;X copy "c:\users\xxx\xx\xx.txt" "\\xxx.sharepoint.com\site\doclib";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If host commands are disabled at your site, or, better yet, when you create the text file just point the output fileref to&amp;nbsp;"\\xxx.sharepoint.com\site\doclib\xx.txt";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2019 20:39:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-file-to-sharepoint-with-SAS/m-p/560971#M156965</guid>
      <dc:creator>DaveHorne</dc:creator>
      <dc:date>2019-05-22T20:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a file to sharepoint with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-file-to-sharepoint-with-SAS/m-p/561073#M157016</link>
      <description>&lt;P&gt;Thanks a lot for your answer, it works when I try it in the terminal, but when I try in SAS, it tells me that there is no file in this directory.... I tried that :&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
X 'copy C:\Users\XX.XX\Desktop\Stage\Mantis\testExport\qsf.txt \\XX.sharepoint.com\Documents%20partages\qsf.txt';
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I also tried like that :&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;X copy 'C:\Users\XX.XX\Desktop\Stage\Mantis\testExport\qsf.txt \\XX.sharepoint.com\Documents%20partages\qsf.txt';&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;or like that&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;X copy 'C:\Users\xx.xx\Desktop\Stage\Mantis\testExport\qsf.txt' '\\XXX.sharepoint.com\Documents%20partages\qsf.txt';&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Same error :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1                                                          Le Système SAS                              17:01 Wednesday, May 22, 2019

1          ;*';*";*/;quit;run;
2          OPTIONS PAGENO=MIN;
3          %LET _CLIENTTASKLABEL='Programme (2)';
4          %LET _CLIENTPROJECTPATH='C:\Users\XXX.XXX\Desktop\Stage\Mantis\testExport\Projet.egp';
5          %LET _CLIENTPROJECTNAME='Projet.egp';
6          %LET _SASPROGRAMFILE=;
7          
8          ODS _ALL_ CLOSE;
9          OPTIONS DEV=ACTIVEX;
10         GOPTIONS XPIXELS=0 YPIXELS=0;
11         FILENAME EGSR TEMP;
12         ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR
13             STYLE=HtmlBlue
14             STYLESHEET=(URL="file:///D:/SAS/SASEnterpriseGuide/7.1/Styles/HtmlBlue.css")
15             NOGTITLE
16             NOGFOOTNOTE
17             GPATH=&amp;amp;sasworklocation
18             ENCODING=UTF8
19             options(rolap="on")
20         ;
NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR
21         
22         GOPTIONS ACCESSIBLE;
Le fichier spécifié est introuvable.
23         data _null_;
24         X 'copy C:\Users\XXX.XXX\Desktop\Stage\Mantis\testExport\qsf.txt
24       ! \\XXX.sharepoint.com\Documents%20partages\qsf.txt';
25         run;

NOTE: DATA statement used (Total process time):
      real time           0.00 secondes
      cpu time            0.00 secondes
      

26         
27         GOPTIONS NOACCESSIBLE;
28         %LET _CLIENTTASKLABEL=;
29         %LET _CLIENTPROJECTPATH=;
30         %LET _CLIENTPROJECTNAME=;
31         %LET _SASPROGRAMFILE=;
32         
33         ;*';*";*/;quit;run;
34         ODS _ALL_ CLOSE;
35         
36         
37         QUIT; RUN;
38         

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In english the error is :&amp;nbsp;The specified file is not found&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2019 08:28:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-file-to-sharepoint-with-SAS/m-p/561073#M157016</guid>
      <dc:creator>Red1</dc:creator>
      <dc:date>2019-05-23T08:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a file to sharepoint with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-file-to-sharepoint-with-SAS/m-p/561130#M157033</link>
      <description>&lt;P&gt;I was just checking on of my jobs and I'm using macro variables for the paths:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;x copy "&amp;amp;workloc" "&amp;amp;youtfile ";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should correspond to the third option you were trying.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The other thing to check is to make sure EG is running the code on the same system where the file exists (otherwise you could create the file directly on SharePoint, or use a common file share).&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2019 13:10:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-file-to-sharepoint-with-SAS/m-p/561130#M157033</guid>
      <dc:creator>DaveHorne</dc:creator>
      <dc:date>2019-05-23T13:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a file to sharepoint with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-file-to-sharepoint-with-SAS/m-p/561131#M157034</link>
      <description>Same error, and yes it is running on the same system</description>
      <pubDate>Thu, 23 May 2019 13:16:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-file-to-sharepoint-with-SAS/m-p/561131#M157034</guid>
      <dc:creator>Red1</dc:creator>
      <dc:date>2019-05-23T13:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to export a file to sharepoint with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-file-to-sharepoint-with-SAS/m-p/561164#M157040</link>
      <description>&lt;P&gt;In the copy command, instead of "Documents%20partages" try "Documents partages".&amp;nbsp; The %20 is just used with http requests.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2019 14:35:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-a-file-to-sharepoint-with-SAS/m-p/561164#M157040</guid>
      <dc:creator>DaveHorne</dc:creator>
      <dc:date>2019-05-23T14:35:29Z</dc:date>
    </item>
  </channel>
</rss>

