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.

SAS Innovate 2025: Register Now

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!

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
  • 1738 views
  • 2 likes
  • 3 in conversation