<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Downloading a CSV using Proc HTTP in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Downloading-a-CSV-using-Proc-HTTP/m-p/824897#M325812</link>
    <description>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.</description>
    <pubDate>Fri, 22 Jul 2022 14:18:16 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2022-07-22T14:18:16Z</dc:date>
    <item>
      <title>Downloading a CSV using Proc HTTP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Downloading-a-CSV-using-Proc-HTTP/m-p/824892#M325809</link>
      <description>&lt;P&gt;I am trying to download a CSV file directly from a website. The file is about 1.5 GB (roughly 5.5 million rows).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas on how I can pull the full file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use the following code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;filename out "c:\temp\ratings.csv";

proc http
url="http://ratingshistory.info/csv/20220601%20Standard%20&amp;amp;%20Poor's%20Ratings%20Services%20US%20Public.csv"
method="get" out=out;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The log is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Request Failed and number of retries has been exceeded.&lt;BR /&gt;NOTE: PROCEDURE HTTP used (Total process time):&lt;BR /&gt;real time 4:02.51&lt;BR /&gt;cpu time 22.67 seconds&lt;/P&gt;&lt;P&gt;NOTE: 200 OK&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 14:03:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Downloading-a-CSV-using-Proc-HTTP/m-p/824892#M325809</guid>
      <dc:creator>Jacob3</dc:creator>
      <dc:date>2022-07-22T14:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading a CSV using Proc HTTP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Downloading-a-CSV-using-Proc-HTTP/m-p/824897#M325812</link>
      <description>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.</description>
      <pubDate>Fri, 22 Jul 2022 14:18:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Downloading-a-CSV-using-Proc-HTTP/m-p/824897#M325812</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2022-07-22T14:18:16Z</dc:date>
    </item>
  </channel>
</rss>

