<?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 Copy files (PDF,XLSX..) from SAS to WebDAV in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Copy-files-PDF-XLSX-from-SAS-to-WebDAV/m-p/899090#M355381</link>
    <description>&lt;P&gt;Hello everybody,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to copy files from SAS to a WebDAV server via &lt;STRONG&gt;filename webdav.&lt;/STRONG&gt; The WebDAV server is not registered in SAS Management Console. I cannot get a connection to the server and do not know why.&lt;BR /&gt;I get the ERROR:&amp;nbsp;ERROR: No logical assign for filename OUTPATH.&lt;BR /&gt;&lt;BR /&gt;Please find here the code I used to try:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options msglevel=i;
/*authdomain="Defaultauth"*/

filename inpath '/usr/local/....test.txt';
filename outpath webdav "https://webdav.xxxx.de:8443/webdav/" debug user="xxxx" pass="xxxx";

   

data _null_;
   length msg $ 384;
   rc=fcopy('inpath', 'outpath');
   if rc=0 then
      put 'Copied SRC to DEST.';
   else do;
      msg=sysmsg();
      put rc= msg=;
   end;
run;


&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* messages in log */

Collection handle creation failed.
ERROR: No logical assign for filename OUTPATH.
ERROR: Error in the FILENAME statement.


rc=10005 msg=ERROR: Open failed for file OUTPATH .
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;- is it at least possible, what I am trying to do on this way?&lt;/P&gt;
&lt;P&gt;- or is there another possibility to reach the aim under this circumstances (proc http ...)?&lt;BR /&gt;&lt;BR /&gt;Any help is appreciated, regards&lt;BR /&gt;Catrin&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Oct 2023 11:31:13 GMT</pubDate>
    <dc:creator>Catrin</dc:creator>
    <dc:date>2023-10-18T11:31:13Z</dc:date>
    <item>
      <title>Copy files (PDF,XLSX..) from SAS to WebDAV</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Copy-files-PDF-XLSX-from-SAS-to-WebDAV/m-p/899090#M355381</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to copy files from SAS to a WebDAV server via &lt;STRONG&gt;filename webdav.&lt;/STRONG&gt; The WebDAV server is not registered in SAS Management Console. I cannot get a connection to the server and do not know why.&lt;BR /&gt;I get the ERROR:&amp;nbsp;ERROR: No logical assign for filename OUTPATH.&lt;BR /&gt;&lt;BR /&gt;Please find here the code I used to try:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options msglevel=i;
/*authdomain="Defaultauth"*/

filename inpath '/usr/local/....test.txt';
filename outpath webdav "https://webdav.xxxx.de:8443/webdav/" debug user="xxxx" pass="xxxx";

   

data _null_;
   length msg $ 384;
   rc=fcopy('inpath', 'outpath');
   if rc=0 then
      put 'Copied SRC to DEST.';
   else do;
      msg=sysmsg();
      put rc= msg=;
   end;
run;


&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* messages in log */

Collection handle creation failed.
ERROR: No logical assign for filename OUTPATH.
ERROR: Error in the FILENAME statement.


rc=10005 msg=ERROR: Open failed for file OUTPATH .
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;- is it at least possible, what I am trying to do on this way?&lt;/P&gt;
&lt;P&gt;- or is there another possibility to reach the aim under this circumstances (proc http ...)?&lt;BR /&gt;&lt;BR /&gt;Any help is appreciated, regards&lt;BR /&gt;Catrin&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 11:31:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Copy-files-PDF-XLSX-from-SAS-to-WebDAV/m-p/899090#M355381</guid>
      <dc:creator>Catrin</dc:creator>
      <dc:date>2023-10-18T11:31:13Z</dc:date>
    </item>
  </channel>
</rss>

