<?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 json into a SAS datset in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/json-into-a-SAS-datset/m-p/432946#M68767</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to run the following SAS code but&amp;nbsp;struck with&amp;nbsp;"Unauthorized to retrieve URL" error.&lt;/P&gt;&lt;P&gt;In SAS usage note :15692 it is reported as "FILENAME statement URL access method supports only BASIC authentication on a web server"&lt;/P&gt;&lt;P&gt;Can someone help me with this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to pass this error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename CANDID url "http://xxxxxxxxxxxxxxxxxxxxxxxxx"
debug; 
libname CANDID json;

LOG:
filename CANDID url "http://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
27 debug;
28 libname CANDID json;
NOTE: JSON data is only read once. To read the JSON again, reassign the JSON LIBNAME.
NOTE: &amp;gt;&amp;gt;&amp;gt; GET xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx HTTP/1.0
NOTE: &amp;gt;&amp;gt;&amp;gt; Host: xxxxxxxxxxxxxx
NOTE: &amp;gt;&amp;gt;&amp;gt; Accept: */*
NOTE: &amp;gt;&amp;gt;&amp;gt; Accept-Language: en
NOTE: &amp;gt;&amp;gt;&amp;gt; Accept-Charset: iso-8859-1,*,utf-8
NOTE: &amp;gt;&amp;gt;&amp;gt; User-Agent: SAS/URL
NOTE: &amp;gt;&amp;gt;&amp;gt; 
NOTE: &amp;lt;&amp;lt;&amp;lt; HTTP/1.1 401 Unauthorized
NOTE: &amp;lt;&amp;lt;&amp;lt; Cache-Control: private
NOTE: &amp;lt;&amp;lt;&amp;lt; Content-Type: text/html; charset=utf-8
NOTE: &amp;lt;&amp;lt;&amp;lt; Server: Microsoft-IIS/8.5
NOTE: &amp;lt;&amp;lt;&amp;lt; X-MiniProfiler-Ids: 
 ["9ecc8ffa-f2b0-453a-a666-257128cf9e99","cd5fc783-7708-4aae-ae34-a06876951acf","2b0b37ab-05f3-478a-b68f-0e949395fc1d","ed24980
 0-fcdc-4cf5-89e8-abc90bc7209a","06c21540-5fd6-471d-a205-6eaa8b4a7eda","56c40204-7c1a-4c69-8a83-3aaa7543f954","
NOTE: &amp;lt;&amp;lt;&amp;lt; WWW-Authenticate: Negotiate
NOTE: &amp;lt;&amp;lt;&amp;lt; WWW-Authenticate: NTLM
NOTE: &amp;lt;&amp;lt;&amp;lt; X-Powered-By: ASP.NET
NOTE: &amp;lt;&amp;lt;&amp;lt; X-UA-Compatible: IE=edge,chrome=1
NOTE: &amp;lt;&amp;lt;&amp;lt; Date: Wed, 31 Jan 2018 23:22:25 GMT
NOTE: &amp;lt;&amp;lt;&amp;lt; Connection: close
NOTE: &amp;lt;&amp;lt;&amp;lt; Content-Length: 6025
NOTE: &amp;lt;&amp;lt;&amp;lt; 
ERROR: Unauthorized to retrieve URL. Use the debug option for more info.
ERROR: Error in the LIBNAME statement.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vamsi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Feb 2018 00:27:40 GMT</pubDate>
    <dc:creator>vkrishna</dc:creator>
    <dc:date>2018-02-01T00:27:40Z</dc:date>
    <item>
      <title>json into a SAS datset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/json-into-a-SAS-datset/m-p/432946#M68767</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to run the following SAS code but&amp;nbsp;struck with&amp;nbsp;"Unauthorized to retrieve URL" error.&lt;/P&gt;&lt;P&gt;In SAS usage note :15692 it is reported as "FILENAME statement URL access method supports only BASIC authentication on a web server"&lt;/P&gt;&lt;P&gt;Can someone help me with this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to pass this error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename CANDID url "http://xxxxxxxxxxxxxxxxxxxxxxxxx"
debug; 
libname CANDID json;

LOG:
filename CANDID url "http://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
27 debug;
28 libname CANDID json;
NOTE: JSON data is only read once. To read the JSON again, reassign the JSON LIBNAME.
NOTE: &amp;gt;&amp;gt;&amp;gt; GET xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx HTTP/1.0
NOTE: &amp;gt;&amp;gt;&amp;gt; Host: xxxxxxxxxxxxxx
NOTE: &amp;gt;&amp;gt;&amp;gt; Accept: */*
NOTE: &amp;gt;&amp;gt;&amp;gt; Accept-Language: en
NOTE: &amp;gt;&amp;gt;&amp;gt; Accept-Charset: iso-8859-1,*,utf-8
NOTE: &amp;gt;&amp;gt;&amp;gt; User-Agent: SAS/URL
NOTE: &amp;gt;&amp;gt;&amp;gt; 
NOTE: &amp;lt;&amp;lt;&amp;lt; HTTP/1.1 401 Unauthorized
NOTE: &amp;lt;&amp;lt;&amp;lt; Cache-Control: private
NOTE: &amp;lt;&amp;lt;&amp;lt; Content-Type: text/html; charset=utf-8
NOTE: &amp;lt;&amp;lt;&amp;lt; Server: Microsoft-IIS/8.5
NOTE: &amp;lt;&amp;lt;&amp;lt; X-MiniProfiler-Ids: 
 ["9ecc8ffa-f2b0-453a-a666-257128cf9e99","cd5fc783-7708-4aae-ae34-a06876951acf","2b0b37ab-05f3-478a-b68f-0e949395fc1d","ed24980
 0-fcdc-4cf5-89e8-abc90bc7209a","06c21540-5fd6-471d-a205-6eaa8b4a7eda","56c40204-7c1a-4c69-8a83-3aaa7543f954","
NOTE: &amp;lt;&amp;lt;&amp;lt; WWW-Authenticate: Negotiate
NOTE: &amp;lt;&amp;lt;&amp;lt; WWW-Authenticate: NTLM
NOTE: &amp;lt;&amp;lt;&amp;lt; X-Powered-By: ASP.NET
NOTE: &amp;lt;&amp;lt;&amp;lt; X-UA-Compatible: IE=edge,chrome=1
NOTE: &amp;lt;&amp;lt;&amp;lt; Date: Wed, 31 Jan 2018 23:22:25 GMT
NOTE: &amp;lt;&amp;lt;&amp;lt; Connection: close
NOTE: &amp;lt;&amp;lt;&amp;lt; Content-Length: 6025
NOTE: &amp;lt;&amp;lt;&amp;lt; 
ERROR: Unauthorized to retrieve URL. Use the debug option for more info.
ERROR: Error in the LIBNAME statement.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vamsi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 00:27:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/json-into-a-SAS-datset/m-p/432946#M68767</guid>
      <dc:creator>vkrishna</dc:creator>
      <dc:date>2018-02-01T00:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: json into a SAS datset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/json-into-a-SAS-datset/m-p/433235#M68785</link>
      <description>&lt;P&gt;I prefer &lt;A href="http://go.documentation.sas.com/?docsetId=proc&amp;amp;docsetVersion=9.4&amp;amp;docsetTarget=n197g47i7j66x9n15xi0gaha8ov6.htm&amp;amp;locale=en" target="_self"&gt;PROC HTTP for this work&lt;/A&gt; -- it provides more authentication and debugging options.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What type of website are you accessing?&amp;nbsp; Is it Sharepoint?&amp;nbsp; That might require a special authentication.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 19:17:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/json-into-a-SAS-datset/m-p/433235#M68785</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2018-02-01T19:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: json into a SAS datset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/json-into-a-SAS-datset/m-p/433644#M68805</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is it Sharepoint?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;No&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What type of website are you accessing?&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The website I'm trying to access is using ASP.NET impersonation and windows authentication. We want to create data set directly from URL instead if creating Json file and again read that file into the SAS using &lt;STRONG&gt;Data&lt;/STRONG&gt; step.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to use Filename statement with URL for the authentication that I mentioned above or Is there any way to pass the credentials?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Vamsi&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 18:24:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/json-into-a-SAS-datset/m-p/433644#M68805</guid>
      <dc:creator>vkrishna</dc:creator>
      <dc:date>2018-02-02T18:24:12Z</dc:date>
    </item>
  </channel>
</rss>

