<?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 token supplied to the function is invalid (0x80090308).&amp;quot; in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-SSL-error-is-quot-The-token-supplied-to-the-function-is/m-p/180160#M45942</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you should check proc http when you are connecting a httpS website.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 Jun 2014 10:50:28 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2014-06-08T10:50:28Z</dc:date>
    <item>
      <title>ERROR: SSL error is "The token supplied to the function is invalid (0x80090308)."</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-SSL-error-is-quot-The-token-supplied-to-the-function-is/m-p/180158#M45940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to run the code below using a proxy.&amp;nbsp; Whenever I run it, I get an SSL error stating that "The token supplied to the function is invalid (0x80090308)."&amp;nbsp; Note when I remove the proxy the code works fine (thanks again KSharp).&amp;nbsp; Also, I can view the requested webpage using the proxy in Chrome.&amp;nbsp; What's the best way to handle this error?&amp;nbsp; Use CURL or the &lt;SPAN style="color: #333333; font-family: Arial, Helvetica, Verdana, sans-serif;"&gt;SAS/SECURE™ SSL Add-in module&lt;/SPAN&gt;?&amp;nbsp; I'm running SAS 9.3.&amp;nbsp; Thank you for any help or suggestions!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Bill&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DM 'CLEAR LOG';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let x=&amp;amp;d; %let s=%superq(x);&lt;/P&gt;&lt;P&gt;%let a=&amp;amp;e; %let p=%superq(a);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;filename in url "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://communities.sas.com/"&gt;https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.option_contracts%20WHERE%20symbol%20in('yhoo'%2C'fb')%0A%09%09&amp;amp;s.iagnostics=true&amp;amp;p.nv=http%3A%2F%2Fdatatables.org%2Falltables.env&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;proxy="my proxy:port"&lt;/P&gt;&lt;P&gt;lrecl=32000;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data temp;&lt;/P&gt;&lt;P&gt;infile in recfm=n dlm='&amp;lt;&amp;gt;';&lt;/P&gt;&lt;P&gt;length symbol expiration $ 20;&lt;/P&gt;&lt;P&gt;retain symbol;&lt;/P&gt;&lt;P&gt;input token : $1000. @@;&lt;/P&gt;&lt;P&gt;if prxmatch('/(^\d{4}-\d{2})|(option\s+symbol=)/o',token) then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if left(token) =: 'option' then&amp;nbsp; do;symbol=scan(token,2,'"'); delete;end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; expiration=token;&lt;/P&gt;&lt;P&gt;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt; end;&lt;/P&gt;&lt;P&gt; drop token;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 07:11:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-SSL-error-is-quot-The-token-supplied-to-the-function-is/m-p/180158#M45940</guid>
      <dc:creator>BillJones</dc:creator>
      <dc:date>2014-06-02T07:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: SSL error is "The token supplied to the function is invalid (0x80090308)."</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-SSL-error-is-quot-The-token-supplied-to-the-function-is/m-p/180159#M45941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I've determined that CURL is the best way to solve this issue and have installed it on my machine.&amp;nbsp; Now I'm trying to run some test code.&amp;nbsp; There are no errors in my log, see below.&amp;nbsp; However, I can't seem to generate the data that I want.&amp;nbsp; It appears that curl is working and a text file is created.&amp;nbsp; Except the text file is blank.&amp;nbsp;&amp;nbsp; Does anyone have any suggestions on what I'm doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much,&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;87&amp;nbsp;&amp;nbsp; dm 'clear log';&lt;/P&gt;&lt;P&gt;88&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;89&amp;nbsp;&amp;nbsp; %let loc=&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://www.yahoo.com/;"&gt;https://www.yahoo.com/;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;90&amp;nbsp;&amp;nbsp; data _null_;&lt;/P&gt;&lt;P&gt;91&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infile %sysfunc(quote(curl -k &amp;amp;loc. &amp;gt; C:\Users\bjones\SAS\Data\data_temp.txt))&lt;/P&gt;&lt;P&gt;91 ! pipe ;&lt;/P&gt;&lt;P&gt;92&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input ;&lt;/P&gt;&lt;P&gt;93&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; put _infile_;&lt;/P&gt;&lt;P&gt;94&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;NOTE: The infile "curl -k &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://www.yahoo.com/"&gt;https://www.yahoo.com/&lt;/A&gt;&lt;SPAN&gt; &amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C:\Users\bjones\SAS\Data\data_temp.txt" is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Unnamed Pipe Access Device,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PROCESS=curl -k &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://www.yahoo.com/"&gt;https://www.yahoo.com/&lt;/A&gt;&lt;SPAN&gt; &amp;gt; C:\Users\bjones\SAS\Data\data_temp.txt,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RECFM=V,LRECL=256&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;NOTE: 0 records were read from the infile "curl -k &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://www.yahoo.com/"&gt;https://www.yahoo.com/&lt;/A&gt;&lt;SPAN&gt; &amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C:\Users\bjones\SAS\Data\data_temp.txt".&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.16 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01 seconds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jun 2014 09:58:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-SSL-error-is-quot-The-token-supplied-to-the-function-is/m-p/180159#M45941</guid>
      <dc:creator>BillJones</dc:creator>
      <dc:date>2014-06-08T09:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: SSL error is "The token supplied to the function is invalid (0x80090308)."</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-SSL-error-is-quot-The-token-supplied-to-the-function-is/m-p/180160#M45942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe you should check proc http when you are connecting a httpS website.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jun 2014 10:50:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-SSL-error-is-quot-The-token-supplied-to-the-function-is/m-p/180160#M45942</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-06-08T10:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: SSL error is "The token supplied to the function is invalid (0x80090308)."</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-SSL-error-is-quot-The-token-supplied-to-the-function-is/m-p/180161#M45943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ksharp,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much for the suggestion.&amp;nbsp; PROC HTTP works perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 00:01:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-SSL-error-is-quot-The-token-supplied-to-the-function-is/m-p/180161#M45943</guid>
      <dc:creator>BillJones</dc:creator>
      <dc:date>2014-06-10T00:01:24Z</dc:date>
    </item>
  </channel>
</rss>

