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.
SAS Innovate 2026: Register now! April 27-30 in Grapevine TX -- it's the premier conference for SAS users!

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.
SAS Innovate 2026: Register now! April 27-30 in Grapevine TX -- it's the premier conference for SAS users!

Catch up on SAS Innovate 2026

Dive into keynotes, announcements and breakthroughs on demand.

Explore 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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1799 views
  • 0 likes
  • 2 in conversation