I'm running the following code without success:
filename
dir
ftp ''
ls
host='xxxxxx'
user='xxxxxx'
pass=xxxxxx
prompt;
data _null_;
infile dir;
input;
put _INFILE_;
run;
I'm getting the following error:
ERROR: Open failed for file DIR
ERROR: The connection has timed out..
NOTE: The SAS System stopped processing this step because of errors.
Does anybody have any idea of what could be the problem?
Thanks!
What messages do you see in the log from the FTP engine? You can add the DEBUG option to the FILENAME statement and the FTP engine will display more information about its attempt to connect to that server.
Yes, I added the debug but the log dind't change. All I'm getting is the same 2 error lines.
Make sure that there is a FTP service active on the destination. Since FTP does not encrypt anything, it is no longer used for anything that requires authentication. Instead the SFTP/SSH protocol is used.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Select SAS Training centers are offering in-person courses. View upcoming courses for: