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,
Do you have a local SAS installation, or does your SAS run on a server? Which frontend do you use, Enterprise Guide, SAS Studio or Display Manager?
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&...
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).
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.
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.