BookmarkSubscribeRSS Feed
ahk1225
Calcite | Level 5

 

I excuted the following program and have error message "

ERROR: The connection has timed out.."

 

 

filename DAAA url

'http://research.stlouisfed.org/fred2/series/DAAA/downloaddata/DAAA.csv'

;

 

data BY_AAA(drop=dd);

length dd $10;

format date date9.;

infile DAAA dlm="," dsd;

input dd$ value;

date=input(dd,yymmdd10.);

if not missing(date) then output;

run;

filename DAAA clear;

 

How to resolve this issue? I tried different method, but could not resolve it.

 

4 REPLIES 4
ballardw
Super User

I would suggest downloading the file to a local drive.

Doc_Duke
Rhodochrosite | Level 12

take a look at

http://blogs.sas.com/content/sasdummy/2012/12/18/using-sas-to-access-data-stored-on-dropbox/

for methods to get to the data you want in a dynamic fashion.

ballardw
Super User

Interesting, times out when I run the code as well but only took about 4 seconds to download to local drive.

 

BTW, I would suggest reading the data with this:

data work.BY_AAA;
   Informat date yymmdd10. ;
   format date date9.;
   infile DAAA dlm="," dsd;
   input date value;
   if not missing(date) then output;
run;

If you know the format when reading it, might as well do it directly and skip the step of converting from and dropping a string variable.

 

conti
Calcite | Level 5

Hi,

 

I have the same problem, how do solve this ?

 

The connection jas time out...

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