<?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: proc http in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-http-output-where-is-it-stored/m-p/727100#M226073</link>
    <description>&lt;P&gt;Right PROC HTTP is just to allow you to interact with the website.&lt;/P&gt;
&lt;P&gt;What you do with what it captured depends on what type of file it was.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Mar 2021 13:26:08 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2021-03-17T13:26:08Z</dc:date>
    <item>
      <title>proc http output - where is it stored?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-http-output-where-is-it-stored/m-p/726875#M225939</link>
      <description>&lt;P&gt;I'm in SAS 9.4. The log implies this code ran with no issues. But where is my table saved?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;filename data temp;
proc http url = "https://lectures.mhhe.com/connect/richardson_daa1e_1260375196/data_files/Chapter_2/Lab_2_5_CollegeScorecard_RawData.txt"
out=data;
run; quit;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 16 Mar 2021 20:04:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-http-output-where-is-it-stored/m-p/726875#M225939</guid>
      <dc:creator>cadams47</dc:creator>
      <dc:date>2021-03-16T20:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: proc http</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-http-output-where-is-it-stored/m-p/726879#M225940</link>
      <description>&lt;P&gt;PROC HTTP transfers the file, it does not import it into SAS, it only moves the file to SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the file called data (&lt;FONT color="#FF0000"&gt;myData&lt;/FONT&gt; in the example below), the file is being stored in a temporary space because you've specified &lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;temp&lt;/STRONG&gt;&lt;/FONT&gt;, not a location/file type.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;filename &lt;FONT size="4" color="#FF0000"&gt;&lt;STRONG&gt;myData&lt;/STRONG&gt;&lt;/FONT&gt; &lt;FONT size="4" color="#FF6600"&gt;&lt;STRONG&gt;temp&lt;/STRONG&gt;&lt;/FONT&gt;;
proc http url = "https://lectures.mhhe.com/connect/richardson_daa1e_1260375196/data_files/Chapter_2/Lab_2_5_CollegeSc..."
out=&lt;FONT size="4" color="#FF0000"&gt;&lt;STRONG&gt;myData&lt;/STRONG&gt;&lt;/FONT&gt;;
run; quit;&lt;/PRE&gt;
&lt;P&gt;Instead specify your file type and location to correctly access the file, but then you also need to remember to clean it up after the fact. The TEMP location allows you to not have to worry about that.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename myData '/folders/myfolders/demo.csv';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Fully explained walkthroughs are here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sasdummy/2017/12/04/scrape-web-page-data/" target="_blank"&gt;https://blogs.sas.com/content/sasdummy/2017/12/04/scrape-web-page-data/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/115976"&gt;@cadams47&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I'm in SAS 9.4. The log implies this code ran with no issues. But where is my table saved?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;filename data temp;&lt;BR /&gt;proc http url = "&lt;A href="https://lectures.mhhe.com/connect/richardson_daa1e_1260375196/data_files/Chapter_2/Lab_2_5_CollegeScorecard_RawData.txt" target="_blank" rel="noopener"&gt;https://lectures.mhhe.com/connect/richardson_daa1e_1260375196/data_files/Chapter_2/Lab_2_5_CollegeScorecard_RawData.txt&lt;/A&gt;"&lt;BR /&gt;out=data;&lt;BR /&gt;run; quit;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 19:29:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-http-output-where-is-it-stored/m-p/726879#M225940</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-03-16T19:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: proc http</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-http-output-where-is-it-stored/m-p/727096#M226072</link>
      <description>&lt;P&gt;Thank you for your answer. So the proc http step only downloads it to where I've put the temp file. (I never could locate it in my temp folder so I specified a filepath I liked, and that worked). But proc http won't change it from a txt file to a .sas7bdat file. I have to use proc import after proc http to convert it?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 13:18:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-http-output-where-is-it-stored/m-p/727096#M226072</guid>
      <dc:creator>cadams47</dc:creator>
      <dc:date>2021-03-17T13:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: proc http</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-http-output-where-is-it-stored/m-p/727100#M226073</link>
      <description>&lt;P&gt;Right PROC HTTP is just to allow you to interact with the website.&lt;/P&gt;
&lt;P&gt;What you do with what it captured depends on what type of file it was.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 13:26:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-http-output-where-is-it-stored/m-p/727100#M226073</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-03-17T13:26:08Z</dc:date>
    </item>
  </channel>
</rss>

