<?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: Importing a file which is downloaded after being registered from a website using SAS in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Importing-a-file-which-is-downloaded-after-being-registered-from/m-p/558948#M10210</link>
    <description>&lt;P&gt;two options:&lt;/P&gt;
&lt;P&gt;1) Check PROC HTTP documentation and see if it could pass username and pw.&lt;/P&gt;
&lt;P&gt;2) Use the third side software cURL to download that CSV, and PROC IMPORT it .&lt;/P&gt;</description>
    <pubDate>Wed, 15 May 2019 14:05:34 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2019-05-15T14:05:34Z</dc:date>
    <item>
      <title>Importing a file which is downloaded after being registered from a website using SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Importing-a-file-which-is-downloaded-after-being-registered-from/m-p/558624#M10137</link>
      <description>&lt;DIV class="votecell post-layout--left"&gt;&lt;DIV class="js-voting-container grid fd-column ai-stretch gs4 fc-black-200"&gt;&lt;DIV class="js-vote-count grid--cell fc-black-500 fs-title grid fd-column ai-center"&gt;0&lt;/DIV&gt;&lt;DIV class="js-favorite-count mt8"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="postcell post-layout--right"&gt;&lt;DIV class="post-text"&gt;&lt;P&gt;I have a problem importing a file from a website where you need to be registered to launch the download of the csv file, here is my code :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;filename foo url 'http://XXXX:8028/'
         USER='XXX' PASS='XXX' debug;

proc import file=foo 
out=bigdata_tel2 
dbms=csv 
replace;
delimiter=";";
getnames=no;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The result is the html code of the page, I also tried that url :&lt;A href="http://xxxx:8028/aaa.csv" target="_blank" rel="nofollow noopener noreferrer"&gt;http://XXXX:8028/aaa.csv&lt;/A&gt; notice that the url doesn't change when I download the file.&lt;/P&gt;&lt;P&gt;Here is the website :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29511i21663965FEBF70A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.PNG" alt="2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It's my first time importing a file from a website, any help is welcome. Thanks&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 May 2019 13:53:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Importing-a-file-which-is-downloaded-after-being-registered-from/m-p/558624#M10137</guid>
      <dc:creator>Red1</dc:creator>
      <dc:date>2019-05-14T13:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a file which is downloaded after being registered from a website using SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Importing-a-file-which-is-downloaded-after-being-registered-from/m-p/558948#M10210</link>
      <description>&lt;P&gt;two options:&lt;/P&gt;
&lt;P&gt;1) Check PROC HTTP documentation and see if it could pass username and pw.&lt;/P&gt;
&lt;P&gt;2) Use the third side software cURL to download that CSV, and PROC IMPORT it .&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 14:05:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Importing-a-file-which-is-downloaded-after-being-registered-from/m-p/558948#M10210</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-05-15T14:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Importing a file which is downloaded after being registered from a website using SAS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Importing-a-file-which-is-downloaded-after-being-registered-from/m-p/558973#M10211</link>
      <description>&lt;P&gt;Thanks for your answer, I tried that :&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;filename resp TEMP;
proc http

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; method="GET"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; url="http://XXX:8028"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; webusername="XXX"
&amp;nbsp; &amp;nbsp;&amp;nbsp; webpassword="XXX"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; out=resp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;

proc import file=resp&lt;BR /&gt;
     out=bigdata_tel2
     dbms=csv
     replace;
     delimiter=";";
     getnames=no;
     run;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ty.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29547i31900B8C6AF390DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="ty.png" alt="ty.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But the result is the same.. . html code&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 14:46:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Importing-a-file-which-is-downloaded-after-being-registered-from/m-p/558973#M10211</guid>
      <dc:creator>Red1</dc:creator>
      <dc:date>2019-05-15T14:46:07Z</dc:date>
    </item>
  </channel>
</rss>

