I'm trying to automate a current process we are running and would like to know how to ftp a zip file from a clients ftp site to my local hard drive using SAS code. Any help will be GREATLY appreciated!!!
I found a work around using a .bat file if anybody is interested. It creates a table, exports it as a .bat file, and executes it. This worked good for me since my file is named with a date that changes every week.
INPUT rem $ 1-50;
> my.ftp echo o ftp.address.com
>> my.ftp echo user
>> my.ftp echo password
>> my.ftp echo bin
>> my.ftp echo cd directory
>> my.ftp echo get file.zip
>> my.ftp echo quit
proc export data = lib.table
outfile = 'D:\directory\table.BAT'