BookmarkSubscribeRSS Feed
ANLYNG
Pyrite | Level 9

Hi ,

 

I try to get a file from a FTPS site. Until now no luck.  I can connect to the server from the sas serves filezilla.

we run sas 9.04.01M3P062415.

 

When I run the below code from SAS EG/SAS DI the ftps server seems to time out

 

options set=SAS_FTP_AUTHTLS="1";

 

filename Src_file ftp 'test.txt'

user='myuser' pass='xxxxxx' host='ftps.FFF.XX' PORT=990 debug

 

;

 

 

 

filename Tar_file "C:\test.txt";

 

data _NULL_;

INFILE Src_file;

INPUT;

File Tar_file ;

PUT _INFILE_ ;

run;

 

Thanks in advance.

4 REPLIES 4
ANLYNG
Pyrite | Level 9

I get the following message now:

 

NOTE: 500 OOPS: error:00000000:lib(0):func(0):reason(0)

NOTE: <<< 500 OOPS: error:00000000:lib(0):func(0):reason(0)

NOTE: >>> AUTH TLS

NOTE: <<< 500 OOPS: priv_sock_get_cmd

WARNING: Validate the FTP server accepts TLS authentication before using the AUTHTLS option.

ERROR: Invalid Reply received for the AUTH TLS command.

NOTE: The file TAR_FILE is:

.....

 

Kurt_Bremser
Super User

Filename ftp is for the standard, unencrypted FTP protocol. FTPS is encrypted, and there is no filename ftps AFAIK.

Use filename sftp to use the ssh protocol.

ANLYNG
Pyrite | Level 9

The FTP site is FTPS and not SFTP. Is there a way from sas to get files transferred? It seems to time out.

Kurt_Bremser
Super User

A quick Google search for "sas and ftps" reveals this: http://support.sas.com/kb/56/154.html as the first hit.

Do you have the necessary requirements in SAS (9.4 TS1 M3 or 9.4 TS1M2 with hotfix), and does the FTPS server support the required options?

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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
  • 4 replies
  • 2317 views
  • 1 like
  • 2 in conversation