<?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: Read Data from URL in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Read-Data-from-URL-in-SAS/m-p/167405#M32216</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the interst of time, may I ask how to &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;read and parse &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;"HANG SENG INDEX (^HSI)" from the given URL?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Nov 2014 13:06:46 GMT</pubDate>
    <dc:creator>RamKumar</dc:creator>
    <dc:date>2014-11-12T13:06:46Z</dc:date>
    <item>
      <title>Read Data from URL in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-Data-from-URL-in-SAS/m-p/167402#M32213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to read data from one of the following link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; background: white;"&gt;&lt;A class="jive-link-external-small" href="https://in.finance.yahoo.com/q?s=%5EHSI&amp;amp;ql=1"&gt;https://in.finance.yahoo.com/q?s=%5EHSI&amp;amp;ql=1&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; background: white;"&gt;I can create HTML page by using proc http...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; background: white;"&gt;But can anyone suggest how to read the data directly from the above link...Please note that data is not saved in file format...It is just displayed in link and i want to read from that...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; background: white;"&gt;Thanks in advance...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; background: white;"&gt;-Urvish&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 08:10:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-Data-from-URL-in-SAS/m-p/167402#M32213</guid>
      <dc:creator>UrvishShah</dc:creator>
      <dc:date>2014-11-12T08:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Read Data from URL in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-Data-from-URL-in-SAS/m-p/167403#M32214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"Internal Server Error" when trying your URL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update: replace the ^ with %&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 09:24:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-Data-from-URL-in-SAS/m-p/167403#M32214</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-11-12T09:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Read Data from URL in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-Data-from-URL-in-SAS/m-p/167404#M32215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What exactly are you trying to read from that page.&amp;nbsp; It looks like a straight forward HTML document (right click and view source).&amp;nbsp; If its something specific then you need to read it in as text and identify the elements you want to pull out, i.e. look for&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN lang="EN"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"HANG SENG INDEX (^HSI)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the read in text, and then read and parse from there. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 09:34:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-Data-from-URL-in-SAS/m-p/167404#M32215</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-11-12T09:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Read Data from URL in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-Data-from-URL-in-SAS/m-p/167405#M32216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the interst of time, may I ask how to &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;read and parse &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;"HANG SENG INDEX (^HSI)" from the given URL?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 13:06:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-Data-from-URL-in-SAS/m-p/167405#M32216</guid>
      <dc:creator>RamKumar</dc:creator>
      <dc:date>2014-11-12T13:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Read Data from URL in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-Data-from-URL-in-SAS/m-p/167406#M32217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, you mention that you have: "&lt;SPAN style="background: white; font-family: 'Courier New';"&gt;I can create HTML page by using proc http..."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So you then just need to do a datastep with an infile.&amp;nbsp; Read the whole text file in and using findc() or index() search for the data you are after.&amp;nbsp; Once you know where it is then you parse the HTML tags to get the actual data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 13:32:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-Data-from-URL-in-SAS/m-p/167406#M32217</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-11-12T13:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: Read Data from URL in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-Data-from-URL-in-SAS/m-p/167407#M32218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are connecting a encrypt URL . Check proc http documentation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;Making PROC HTTP Calls by Using the HTTPS Protocol
In order to make PROC HTTP calls by using the HTTPS protocol, you must configure
a trust source that contains the certificate of the service to be trusted. This trust source
and its password must be provided for the SAS session by setting Java system options
using jreoptions. You can provide this information on the SAS command line or in a
SAS configuration file. Use the following syntax. Be sure to enter the following entry on
one line:
-jreoptions (-Djavax.net.ssl.trustStore=full-path-to-the-trust-store -
Djavax.net.ssl.trustStorePassword=trustStorePassword)
The following example shows how to use the entry on the SAS command line. This
example uses the Windows operating environment. Be sure to enter the following entry
on one line:
"C:\Program Files\SAS\SASFoundation\9.2\sas.exe" -CONFIG
"C:\Program Files\SAS\SASFoundation\9.2\nls\en\SASV9.CFG"
-jreoptions (- Djavax.net.ssl.trustStore=C:\Documents and Settings\mydir\.keystore
-Djavax.net.ssl.trustStorePassword=trustpassword)


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Nov 2014 14:14:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-Data-from-URL-in-SAS/m-p/167407#M32218</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-11-12T14:14:45Z</dc:date>
    </item>
  </channel>
</rss>

