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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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