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

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

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
  • 747 views
  • 0 likes
  • 1 in conversation