官方解释是反向查询函数的问题:
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 nameERROR: 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;
建议:重装一个好用的SAS
或者按照官方说法下载一个HOT FIX...
下载地址:
http://ftp.sas.com/techsup/download/hotfix/f9_sbcs_prod_list.html#034098
Hot Fix 好用与否 未测试。