SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 34098: SAS® is unable to connect to the host when specifying the host name while using the FTP/URL/Socket/EMAIL FILENAME engine

DetailsHotfixAboutRate It

When you use the FTP, URL, or SOCKET engine in SAS® 9.2 Phase 1 (TS1M0) in a FILENAME statement, you might receive the following error if the remote host's HOSTNAME cannot be resolved to a valid remote host name:

NOTE: UNABLE TO CONNECT TO HOST host name. 
CHECK VALIDITY OF HOST NAME.
ERROR: OPEN FAILED FOR FILE file name
ERROR: HOSTNAME host name NOT FOUND.

This error is likely caused by a problem with the reverse lookup function.

Select the Hot Fix tab in this note to access the hot fix for this issue.

An example for using the FTP engine would be the following:

filename lcl ftp 'test.sas7bdat' host='<host_name>' user='<userid>' prompt cd='<Path_to_the_folder_where_test.sas7bdat_resides>' recfm=s debug; FILENAME rmt 'c:\test.sas7bdat' recfm=n; DATA _NULL_; N=1; INFILE lcl NBYTE=n; INPUT; FILE rmt ; PUT _INFILE_ @@; RUN;


Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASMicrosoft® Windows® for 64-Bit Itanium-based Systems9.2 TS1M09.2 TS2M0
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.2 TS1M09.2 TS2M0
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.2 TS1M09.2 TS2M0
Microsoft Windows XP 64-bit Edition9.2 TS1M09.2 TS2M0
Microsoft® Windows® for x649.2 TS1M09.2 TS2M0
Microsoft Windows Server 2003 Datacenter Edition9.2 TS1M09.2 TS2M0
Microsoft Windows Server 2003 Enterprise Edition9.2 TS1M09.2 TS2M0
Microsoft Windows Server 2003 Standard Edition9.2 TS1M09.2 TS2M0
Microsoft Windows XP Professional9.2 TS1M09.2 TS2M0
Windows Vista9.2 TS1M09.2 TS2M0
z/OS9.2 TS1M09.2 TS2M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.