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).

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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
  • 1348 views
  • 0 likes
  • 3 in conversation