<?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: Import the txt file from web using  &amp;quot;http://&amp;quot; in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Import-the-txt-file-from-web-using-quot-http-quot/m-p/726516#M225747</link>
    <description>&lt;P&gt;Perhaps Proc HTTP can help.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=proc&amp;amp;docsetTarget=n0t7v16eitluu2n15ffpfeafqszs.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=proc&amp;amp;docsetTarget=n0t7v16eitluu2n15ffpfeafqszs.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can provide instructions like "GET" to request data but I don't use this and there are likely to be a number of additional pieces of information that you may need to provide to get the correct connection.&lt;/P&gt;</description>
    <pubDate>Mon, 15 Mar 2021 19:32:47 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-03-15T19:32:47Z</dc:date>
    <item>
      <title>Import the txt file from web using  "http://"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-the-txt-file-from-web-using-quot-http-quot/m-p/725833#M225525</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you know please how to import the file from web. I'm using the code like :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data scores;
   infile "http://XXXX/Liste.txt" truncover;
   format name $8.;
   informat name $8.;
   input name ;
 run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But it doesn't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much for your help !&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 16:48:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-the-txt-file-from-web-using-quot-http-quot/m-p/725833#M225525</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2021-03-12T16:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Import the txt file from web using  "http://"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-the-txt-file-from-web-using-quot-http-quot/m-p/725844#M225532</link>
      <description>&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=lestmtsglobal&amp;amp;docsetTarget=p103pi2vrzn6qhn1e8alrs01jrb7.htm&amp;amp;locale=en"&gt;SAS Help Center: FILENAME Statement: URL Access Method&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 17:16:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-the-txt-file-from-web-using-quot-http-quot/m-p/725844#M225532</guid>
      <dc:creator>PhilC</dc:creator>
      <dc:date>2021-03-12T17:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Import the txt file from web using  "http://"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-the-txt-file-from-web-using-quot-http-quot/m-p/725849#M225534</link>
      <description>&lt;P&gt;Doesn't work is awful vague.&lt;BR /&gt;&lt;BR /&gt;Are there errors in the log?: Post the code and log in a code box opened with the "&amp;lt;/&amp;gt;" to maintain formatting of error messages.&lt;BR /&gt;&lt;BR /&gt;No output? Post any log in a code box.&lt;BR /&gt;&lt;BR /&gt;Unexpected output? Provide input data in the form of data step code pasted into a code box, the actual results and the expected results. Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the "&amp;lt;/&amp;gt;" icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 17:33:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-the-txt-file-from-web-using-quot-http-quot/m-p/725849#M225534</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-03-12T17:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Import the txt file from web using  "http://"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-the-txt-file-from-web-using-quot-http-quot/m-p/726488#M225733</link>
      <description>&lt;P&gt;Thank you !&lt;BR /&gt;My problem is that this file doesn't existe until clicking on http://XXXXXX. In web, there is the request (the client's request -&amp;gt; server) and the response (server -&amp;gt; client's browser). The response from http://XXXXXX is a file stream type txt (generated with php).&lt;BR /&gt;I'm wondering if there is possible to import this kind of file.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 18:16:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-the-txt-file-from-web-using-quot-http-quot/m-p/726488#M225733</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2021-03-15T18:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Import the txt file from web using  "http://"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-the-txt-file-from-web-using-quot-http-quot/m-p/726489#M225734</link>
      <description>Thank you !&lt;BR /&gt;I have an error that there is no file. My problem is that this file doesn't existe until clicking on http://XXXXXX. In web, there is the request (the client's request -&amp;gt; server) and the response (server -&amp;gt; client's browser). The response from http://XXXXXX is a file stream type txt (generated with php).&lt;BR /&gt;I'm wondering if there is possible to import this kind of file.</description>
      <pubDate>Mon, 15 Mar 2021 18:15:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-the-txt-file-from-web-using-quot-http-quot/m-p/726489#M225734</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2021-03-15T18:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Import the txt file from web using  "http://"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-the-txt-file-from-web-using-quot-http-quot/m-p/726516#M225747</link>
      <description>&lt;P&gt;Perhaps Proc HTTP can help.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=proc&amp;amp;docsetTarget=n0t7v16eitluu2n15ffpfeafqszs.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=proc&amp;amp;docsetTarget=n0t7v16eitluu2n15ffpfeafqszs.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can provide instructions like "GET" to request data but I don't use this and there are likely to be a number of additional pieces of information that you may need to provide to get the correct connection.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 19:32:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-the-txt-file-from-web-using-quot-http-quot/m-p/726516#M225747</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-03-15T19:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Import the txt file from web using  "http://"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-the-txt-file-from-web-using-quot-http-quot/m-p/726528#M225755</link>
      <description>&lt;P&gt;You need to use the URL filename engine. Otherwise is just going to look for a file on the local computer with that name.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;infile "http://XXXX/Liste.txt" url truncover;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Mar 2021 20:23:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-the-txt-file-from-web-using-quot-http-quot/m-p/726528#M225755</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-03-15T20:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Import the txt file from web using  "http://"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-the-txt-file-from-web-using-quot-http-quot/m-p/726540#M225761</link>
      <description>Thank you Tom ! The file is generated by php only if I request it with http://XXXXXX, so it's "instantly generated txt file". I don't know If I can use the proc http with that.</description>
      <pubDate>Mon, 15 Mar 2021 21:03:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-the-txt-file-from-web-using-quot-http-quot/m-p/726540#M225761</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2021-03-15T21:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Import the txt file from web using  "http://"</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-the-txt-file-from-web-using-quot-http-quot/m-p/726788#M225900</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/286185"&gt;@SASdevAnneMarie&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Thank you Tom ! The file is generated by php only if I request it with http://XXXXXX, so it's "instantly generated txt file". I don't know If I can use the proc http with that.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It is not 1992 anymore.&amp;nbsp; Most of the url's on the web are not pointing at actual files.&amp;nbsp; So try it and see.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 15:03:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-the-txt-file-from-web-using-quot-http-quot/m-p/726788#M225900</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-03-16T15:03:24Z</dc:date>
    </item>
  </channel>
</rss>

