BookmarkSubscribeRSS Feed
saslove
Quartz | Level 8

FILENAME ftp1 FTP '' LS HOST='ftp01.ftp.mdsol.com'
cd='/org.mdsol.com/sasondemand' user='type username'
pass='{password' debug AUTHTLS PASSIVE;
data listing;
infile ftp1 DLM=' ' ;
input ;
File_Name = _infile_;
run;

Can you let me know why this is getting reset by peer? How to fix this ? 
The error is "Connection was reset by peer"

What is the issue with my code?

1 REPLY 1
SASKiwi
PROC Star

This isn't necessarily a coding issue. If you Google your error you will see this:

SASKiwi_0-1759777285202.png

Can you use FTP successfully from a command line using the FTP command?

 

Are you using a SAS server or not? If you are then the most likely cause is a firewall rule blocking your connection. You will need to talk to your IT support to confirm this.

 

Your FILENAME statement also includes a double quote which shouldn't be there: 

SASKiwi_0-1759794753814.png

 

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
  • 1 reply
  • 265 views
  • 0 likes
  • 2 in conversation