BookmarkSubscribeRSS Feed
ANLYNG
Pyrite | Level 9

We need to transfer from Enterprise Guide/SAS code  from local SAS/Linux server to a SFTP site.

We want to recursive put files and directories from a folderpoint on linux to same structure below a folderpoint on a SFTP.

 

How is that done most easily ? I prefer a command to execute from enterprise guide eg. OS Linux command by x command?

 

Thanks in advance.

1 REPLY 1
Kurt_Bremser
Super User

In order to use sftp (or any command from the SSH suite), you first must set up passwordless authentication to the target site. Which means creating a public/private key pair and store that in the appropriate locations on both server and client. This is necessary because you cannot specify passwords on the commandline for all these commands.

after that, it is just using scp as documented, e.g. here.

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
  • 1 reply
  • 689 views
  • 0 likes
  • 2 in conversation