<?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: Copy and Paste Excel From SharePoint in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Copy-and-Paste-Excel-From-SharePoint/m-p/589345#M168555</link>
    <description>&lt;P&gt;Thanks a lot ChrisNZ&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I tried this and it worked fine :&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;DATA _NULL_;&lt;BR /&gt;LENGTH msg $ 384;&lt;BR /&gt;rc=fcopy('_INPATH','_OUTPATH');&lt;BR /&gt;if rc=0 then&lt;BR /&gt;put 'Copied SRC to DEST,';&lt;BR /&gt;else do;&lt;BR /&gt;mdg=sysmsg();&lt;BR /&gt;put rc= msg=;&lt;BR /&gt;end;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a good day!&lt;/P&gt;</description>
    <pubDate>Tue, 17 Sep 2019 13:18:54 GMT</pubDate>
    <dc:creator>P3T3R_NFLLAB</dc:creator>
    <dc:date>2019-09-17T13:18:54Z</dc:date>
    <item>
      <title>Copy and Paste Excel From SharePoint</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-and-Paste-Excel-From-SharePoint/m-p/589170#M168465</link>
      <description>&lt;P&gt;Good Morning,&lt;/P&gt;&lt;P&gt;I try to copy a template xlsx file from a shared depository on sharepoint to another one on sharepoint. Then i would like to wrote data into the newly copied excel file.&lt;/P&gt;&lt;P&gt;Here is the code that I try, but sas keep erroring and disconnect from the server without giving me an error code :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Inpath et outpath */&lt;BR /&gt;filename _INPATH WEBDAV "http://sharepoint/dia/Demandes/DIA_3489/3_Developpement/TEMPLATE_EXCEL.xlsx"&lt;BR /&gt;user = "xxxxx"&lt;BR /&gt;pass ="xxx";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;filename _OUTPATH WEBDAV "http://sharepoint/dia/Demandes/DIA_3489/3_Developpement/Ind_Renouv.xlsx"&lt;BR /&gt;user = "xxxxx"&lt;BR /&gt;pass ="xxx";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA _NULL_;&lt;BR /&gt;INFILE _INPATH;&lt;BR /&gt;INPUT CAR $CHAR1. @@;&lt;BR /&gt;FILE _OUTPATH;&lt;BR /&gt;PUT CAR $CHAR1. @@;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LIBNAME WORKBOOK XLSX _OUTPATH;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* code to put sas database in excel here */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FILENAME _OUTPATH CLEAR;&lt;BR /&gt;FILENAME _INPATH CLEAR;&lt;BR /&gt;LIBNAME WORKBOOK CLEAR;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your time and help!&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 19:27:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-and-Paste-Excel-From-SharePoint/m-p/589170#M168465</guid>
      <dc:creator>P3T3R_NFLLAB</dc:creator>
      <dc:date>2019-09-16T19:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Copy and Paste Excel From SharePoint</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-and-Paste-Excel-From-SharePoint/m-p/589231#M168498</link>
      <description>&lt;P&gt;Have you tried the FCOPY function?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 02:43:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-and-Paste-Excel-From-SharePoint/m-p/589231#M168498</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-09-17T02:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Copy and Paste Excel From SharePoint</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-and-Paste-Excel-From-SharePoint/m-p/589345#M168555</link>
      <description>&lt;P&gt;Thanks a lot ChrisNZ&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I tried this and it worked fine :&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;DATA _NULL_;&lt;BR /&gt;LENGTH msg $ 384;&lt;BR /&gt;rc=fcopy('_INPATH','_OUTPATH');&lt;BR /&gt;if rc=0 then&lt;BR /&gt;put 'Copied SRC to DEST,';&lt;BR /&gt;else do;&lt;BR /&gt;mdg=sysmsg();&lt;BR /&gt;put rc= msg=;&lt;BR /&gt;end;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a good day!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 13:18:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-and-Paste-Excel-From-SharePoint/m-p/589345#M168555</guid>
      <dc:creator>P3T3R_NFLLAB</dc:creator>
      <dc:date>2019-09-17T13:18:54Z</dc:date>
    </item>
  </channel>
</rss>

