BookmarkSubscribeRSS Feed
thanikondharish
Fluorite | Level 6

I have one folder in sas server. I am able to transfer particular file from sas server to Linux,UNIX servers using

%sysexec or x command .

 

How to transfer folder from sas server to Linux,Unix servers

5 REPLIES 5
Tom
Super User Tom
Super User

Can you try explaining the problem in a different way?  It sounds like you are asking how to do something you just said you know how to do already.

thanikondharish
Fluorite | Level 6

I am able to transfer particular file like txt,pdf,xlsx but ow to transfer one folder from sas server to Linux,Unix servers

thanikondharish
Fluorite | Level 6

ex:

 

%sysexec scp  D:\file1\profit.xlsx        F:/file2 ;

 

Note: File will transfer to 'F' drive 

Kurt_Bremser
Super User

So you do not even copy across servers, but to a network share (there is no user@hostname: prefix in your scp command)?

Then you can use the venerable xcopy to copy a complete directory tree.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 5 replies
  • 1711 views
  • 0 likes
  • 3 in conversation