BookmarkSubscribeRSS Feed
Catrin
Obsidian | Level 7

Hello everybody,

 

I tried to copy files from SAS to a WebDAV server via filename webdav. The WebDAV server is not registered in SAS Management Console. I cannot get a connection to the server and do not know why.
I get the ERROR: ERROR: No logical assign for filename OUTPATH.

Please find here the code I used to try:

 

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;


/* 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 .

- is it at least possible, what I am trying to do on this way?

- or is there another possibility to reach the aim under this circumstances (proc http ...)?

Any help is appreciated, regards
Catrin

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 0 replies
  • 1161 views
  • 0 likes
  • 1 in conversation