BookmarkSubscribeRSS Feed
BMI0776
Calcite | Level 5

I apologize of asking a question that has probably already been asked, but i couldn't find an answer.  .

How can I download a file, save it to a known location, and unzip the file to be imported by SAS?  I am not using SAS on Unix.  I have seen quite a few answers for a UNIX environment.

Thanks in advance for your help.

4 REPLIES 4
jakarman
Barite | Level 11

As you are probably on Windows the Unix solutions you have found are not really  different your question is also not. What is your problem? Using 7zip.exe at your solution?

---->-- ja karman --<-----
BMI0776
Calcite | Level 5

I'll calrify my question.  I would like to do the following in SAS 9.2

1) How do i download a file from an FTP and save it to  a know location

2) How do I unzip the file I just downloadd

THanks

jakarman
Barite | Level 11

SAS has a ftp interface it is rather limited but when working you could use that.

When you need to use an other (s)ftp application you are getting dependent on scripting and the x-cmd.

SAS is using zip files, with ods you can use some actions on zip files. Needing an other zip application being used you are getting dependent on scripting and the x-cmd interface.

All is becoming better with the newest releases of SAS just do the upgrade (no additional license cost).

---->-- ja karman --<-----
Tom
Super User Tom
Super User

Look at this thread for discussion of using 7za.exe command program for dealing with ZIP files on Windows machines.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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