<?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: How to automate reading .htmls in a csv in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-automate-reading-htmls-in-a-csv/m-p/683009#M206806</link>
    <description>To clarify, i have a list of urls in a SAS datafile in a single column that is also available in a csv format as well</description>
    <pubDate>Thu, 10 Sep 2020 17:48:12 GMT</pubDate>
    <dc:creator>SASAccDave</dc:creator>
    <dc:date>2020-09-10T17:48:12Z</dc:date>
    <item>
      <title>How to automate reading .htmls in a csv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-automate-reading-htmls-in-a-csv/m-p/683008#M206805</link>
      <description>&lt;P&gt;Hello, i currently have a SAS datafile which contains a list of hyperlinks (html).&lt;/P&gt;&lt;P&gt;I have written the following code to find the keyword (".htm") within the hyperlink to get me back some items that i need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;filename proxy url "&lt;A href="https://www.sec.gov/Archives/edgar/data/863520/0001193125-19-262939-index.htm" target="_blank"&gt;https://www.sec.gov/Archives/edgar/data/863520/0001193125-19-262939-index.htm&lt;/A&gt;";&lt;BR /&gt;data proxy_archive(keep=htm);&lt;BR /&gt;length htm $200;&lt;BR /&gt;infile proxy length = len lrecl = 32767;&lt;BR /&gt;input line $varying32767. len;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if find(line, ".htm") then do;&lt;BR /&gt;htm = scan(line,-1,'"');&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;BR /&gt;filename proxy clear;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the above code only does this for one hyperlink that i manually put into proxy url "..."&lt;/P&gt;&lt;P&gt;I have a list of urls through which i would like to conduct the above code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much in advance for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 17:46:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-automate-reading-htmls-in-a-csv/m-p/683008#M206805</guid>
      <dc:creator>SASAccDave</dc:creator>
      <dc:date>2020-09-10T17:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate reading .htmls in a csv</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-automate-reading-htmls-in-a-csv/m-p/683009#M206806</link>
      <description>To clarify, i have a list of urls in a SAS datafile in a single column that is also available in a csv format as well</description>
      <pubDate>Thu, 10 Sep 2020 17:48:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-automate-reading-htmls-in-a-csv/m-p/683009#M206806</guid>
      <dc:creator>SASAccDave</dc:creator>
      <dc:date>2020-09-10T17:48:12Z</dc:date>
    </item>
  </channel>
</rss>

