BookmarkSubscribeRSS Feed
mariajriv01
Calcite | Level 5

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!

 

3 REPLIES 3
Tom
Super User Tom
Super User

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.

mariajriv01
Calcite | Level 5

Yes, I added the debug but the log dind't change. All I'm getting is the same 2 error lines.

Kurt_Bremser
Super User

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.

SAS Innovate 2025: Call for Content

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!

Submit your idea!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 560 views
  • 0 likes
  • 3 in conversation