<?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: ERROR: SSL error is &amp;quot;The message received was unexpected or badly formatted. (0x80090326).&amp;amp; in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-SSL-error-is-quot-The-message-received-was-unexpected-or/m-p/486644#M126659</link>
    <description>&lt;P&gt;"&lt;SPAN&gt;hmm that's strange, this website should be public." - it is, I can goto the web address in browser and click on and download a file, I can't programmatically&amp;nbsp;access the site however, could be my virtual setup, could be the site.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;Because the list of files updates regularly and I don't want to watch it and download and import manually.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Just automating boring repetitive work." - get access to the source data rather than some bunch of Excel files?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am afraid I do not know is the answer to your other question.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Aug 2018 12:52:04 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-08-14T12:52:04Z</dc:date>
    <item>
      <title>ERROR: SSL error is "The message received was unexpected or badly formatted. (0x80090326).".</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-SSL-error-is-quot-The-message-received-was-unexpected-or/m-p/486603#M126641</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I'm getting this strange error when trying to scrape a website. I don't have any results when searching for this error on the web.&lt;/P&gt;
&lt;P&gt;It was working fine few weeks ago, my setup hasn't changed so that rules that out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I guess they changed something in their page, but I can't pinpoint what exactly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since I don't have the hand on the source website, I'm searching an alternative solution to make it work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm just collecting the list of XLS filenames in the list&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%let fileListURL = https://www.inami.fgov.be/fr/professionnels/etablissements-services/laboratoires/Pages/historique-labos-agrees-prestations.aspx;&lt;BR /&gt;&lt;BR /&gt;filename listURL url "&amp;amp;fileListURL";&lt;BR /&gt;data INAMI_FILES;&lt;BR /&gt; infile listURL length=len lrecl=32767;&lt;BR /&gt; input line $varying32767. len;&lt;BR /&gt; * filter all the lines with .xls;&lt;BR /&gt; if find(line,".xls") then do;&lt;BR /&gt; * this is a big line so we will split it into several lines with '&amp;lt;';&lt;BR /&gt; count = countw(line,'&amp;lt;');&lt;BR /&gt; do i=1 to count;&lt;BR /&gt; tag = scan(line, i, '&amp;lt;');&lt;BR /&gt; * now filter again only those containing ".xls";&lt;BR /&gt; if find(tag,".xls") then do;&lt;BR /&gt; * extract the url;&lt;BR /&gt; file_url = scan(tag,2,'"');&lt;BR /&gt; * extract the id;&lt;BR /&gt; file_id = scan( scan( file_url, -1, '_'), 1, '.' );&lt;BR /&gt; * extract the extension;&lt;BR /&gt; file_ext = cats('.xl', scan( tranwrd( file_url, '.xl', '*' ), 2, '*' ) );&lt;BR /&gt; output;&lt;BR /&gt; end;&lt;BR /&gt; end;&lt;BR /&gt; end;&lt;BR /&gt; drop line count i tag ;&lt;BR /&gt;run;&lt;BR /&gt;filename listURL clear;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;ERROR: SSL error is "The message received was unexpected or badly formatted. (0x80090326).".&lt;/STRONG&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;WARNING: The data set WORK.INAMI_FILES may be incomplete. When this step was stopped there were 0 &lt;BR /&gt; observations and 3 variables.&lt;BR /&gt;WARNING: Data set WORK.INAMI_FILES was not replaced because this step was stopped.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 10:26:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-SSL-error-is-quot-The-message-received-was-unexpected-or/m-p/486603#M126641</guid>
      <dc:creator>mathias</dc:creator>
      <dc:date>2018-08-14T10:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: SSL error is "The message received was unexpected or badly formatted. (0x80090326).&amp;</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-SSL-error-is-quot-The-message-received-was-unexpected-or/m-p/486607#M126643</link>
      <description>&lt;P&gt;Interestingly I get:&lt;/P&gt;
&lt;P&gt;ERROR: Connection refused.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Probably best to take it up with the website in question, they may have switched off this type of access (possible DDoS access for example).&amp;nbsp; Could be that it is behind a login wall, or some other mechanism.&amp;nbsp; Any reason why you would need code to do this?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 10:46:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-SSL-error-is-quot-The-message-received-was-unexpected-or/m-p/486607#M126643</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-08-14T10:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: SSL error is "The message received was unexpected or badly formatted. (0x80090326).&amp;</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-SSL-error-is-quot-The-message-received-was-unexpected-or/m-p/486620#M126645</link>
      <description>&lt;P&gt;&lt;SPAN&gt;hmm that's strange, this website should be public.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;gt; Any reason why you would need code to do this?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Because the list of files updates regularly and I don't want to watch it and download and import manually.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Just automating boring repetitive work.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;IDEA:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let's say there is an error in the page syntax or something badly formatted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Isn't there a way to still get all the text, regardless of that?&lt;/P&gt;
&lt;P&gt;Maybe something like pre-cropping the headers and footers of the page that I'm either way never going to read?&lt;/P&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, 14 Aug 2018 11:54:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-SSL-error-is-quot-The-message-received-was-unexpected-or/m-p/486620#M126645</guid>
      <dc:creator>mathias</dc:creator>
      <dc:date>2018-08-14T11:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: SSL error is "The message received was unexpected or badly formatted. (0x80090326).&amp;</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-SSL-error-is-quot-The-message-received-was-unexpected-or/m-p/486644#M126659</link>
      <description>&lt;P&gt;"&lt;SPAN&gt;hmm that's strange, this website should be public." - it is, I can goto the web address in browser and click on and download a file, I can't programmatically&amp;nbsp;access the site however, could be my virtual setup, could be the site.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;Because the list of files updates regularly and I don't want to watch it and download and import manually.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Just automating boring repetitive work." - get access to the source data rather than some bunch of Excel files?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am afraid I do not know is the answer to your other question.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 12:52:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-SSL-error-is-quot-The-message-received-was-unexpected-or/m-p/486644#M126659</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-08-14T12:52:04Z</dc:date>
    </item>
  </channel>
</rss>

