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: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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