BookmarkSubscribeRSS Feed
Sharique
Calcite | Level 5

i am using the below code in EG to download federal rates from the url. But each time it throws error.Kindly help.

 

filename out 'C:\Users\islams\out.csv';

proc http method='get'

out=out

url="https://fred.stlouisfed.org/series/FEDFUNDS/downloaddata/FEDFUNDS.csv"

proxyhost="10.61.186.3"

proxyport=9090;

run;

 

ERROR

 

ERROR: java.net.ConnectException: Connection refused

 

3 REPLIES 3
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Well, your code seems fine from a SAS perspective, and clicking on the link does download the file.  I doesn't however do anything on my machine either, so I would assume that website does not allow that type of access, or that you need login details to be able to do this type of task.  Unfortunately, this is outside the scope of this forum, either contact your IT to check, and/or that website to see what is needed.

Kurt_Bremser
Super User

How do you run SAS? If you have a client/server install, you most probably have no permission to use the proxy from the server. This would also invalidate your C:\ path for the outfile, as you might not have write access to that path on the server.

ChrisHemedinger
Community Manager

How confident are you about those proxy settings?  Have those worked for you before?

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 3 replies
  • 974 views
  • 0 likes
  • 4 in conversation