BookmarkSubscribeRSS Feed
arunrami
Pyrite | Level 9

I am trying to read file from FTP site , but I am getting following error while doing import .

can any one help?

 

NOTE: Unable to open parameter catalog: SASUSER.PARMS.PARMS.SLIST in update
mode. Temporary parameter values will be saved to WORK.PARMS.PARMS.SLIST.
ERROR: Open failed for file TEST
ERROR: Import unsuccessful. See SAS Log for details.

 

filename test ftp
'S****.csv' 
cd = '/Home/abacb/'    /*directory of file*/
host= 'sftp.com'
user= 'uuuuu'
pass = 'xxxxx'
passive binary recfm=s
;
5 REPLIES 5
MichaelLarsen
SAS Employee
start by adding the DEBUG parameter to the filename statement. You should then see additional information in the log that may help in finding out the cause for the error message.
arunrami
Pyrite | Level 9

Nope. I am now getting any error while running filename statement . 

Error comes with proc import when I tried to read the file

arunrami
Pyrite | Level 9

tried data step getting below error..

 

@Kurt_Bremser @MichaelLarsen  @Cynthia_sas  can you please suggest something

 

 

26 data _null_;
27 infile test obs=10;
28 input;
29 put _infile_;
30 run;

ERROR: Open failed for file TEST
ERROR: The connection has timed out..

MichaelLarsen
SAS Employee

If you are trying to access a SFTP site then please read the documentation:

 

https://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.4&docsetId=lestmtsglobal&docsetTarge... 

 

currently you have specified the FTP protocol which will not work with SFTP.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 2219 views
  • 2 likes
  • 3 in conversation