BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Jacob3
Calcite | Level 5

I am trying to download a CSV file directly from a website. The file is about 1.5 GB (roughly 5.5 million rows).

 

This works for 1 GB which corresponds to 3,600,716 observations. I then tried just downloading the file from the website directly to my computer. It keeps restarting the download at exactly 1 GB.

 

Any ideas on how I can pull the full file?

 

I use the following code:

filename out "c:\temp\ratings.csv";

proc http
url="http://ratingshistory.info/csv/20220601%20Standard%20&%20Poor's%20Ratings%20Services%20US%20Public.csv"
method="get" out=out;
run;

The log is: 

ERROR: Request Failed and number of retries has been exceeded.
NOTE: PROCEDURE HTTP used (Total process time):
real time 4:02.51
cpu time 22.67 seconds

NOTE: 200 OK
NOTE: The SAS System stopped processing this step because of errors.

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisHemedinger
Community Manager
I gave this a quick try and I see the same behavior. I think this might be a problem with the server that hosts these files. Smaller files seem to work fine.
Learn from the Experts! Check out the huge catalog of free sessions in the Ask the Expert webinar series.

View solution in original post

1 REPLY 1
ChrisHemedinger
Community Manager
I gave this a quick try and I see the same behavior. I think this might be a problem with the server that hosts these files. Smaller files seem to work fine.
Learn from the Experts! Check out the huge catalog of free sessions in the Ask the Expert webinar series.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 824 views
  • 0 likes
  • 2 in conversation