BookmarkSubscribeRSS Feed
mlogan
Lapis Lazuli | Level 10

Hi All,

I am trying to upload as well as retrieve a file from my pc to the SFTP site. Can someone please tell me what will be the sas code for both of these. 

 

Thanks,

4 REPLIES 4
mlogan
Lapis Lazuli | Level 10
I have sas base installed on a local PC. I can use Enterprise Guide if I need to.
SASKiwi
PROC Star

Start by searching the SAS documentation (documentation.sas.com) using your key words file and SFTP. You will get answers faster that way. Then you will find links like this where there are a lot of code examples: https://documentation.sas.com/?docsetId=lestmtsglobal&docsetTarget=p0xln1fiwsr340n1xxf4mkmfxp6f.htm&...

Kurt_Bremser
Super User

You first need to set up passwordless (public/private key) authentication to your target servers.

From the documentation of FILENAME SFTP, I take it that SAS uses putty on Windows platforms (see example #3 in the link).

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 connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 1637 views
  • 0 likes
  • 3 in conversation