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.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.
Ready to level-up your skills? Choose your own adventure.