<?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: load proc http json results direct into dataset? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/load-proc-http-json-results-direct-into-dataset/m-p/524597#M142669</link>
    <description>&lt;P&gt;Actually&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/251819"&gt;@Dwayne-Dibbley&lt;/a&gt;, assuming that the code you shared is working for you, that's exactly how you do it.&amp;nbsp; The JSON response comes back as a file, and then you use the JSON LIBNAME engine to read it.&amp;nbsp; It might (logically) contain several data sets that relate to each other, so this additional step is needed for SAS to interpret the data as you need it.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Jan 2019 16:19:41 GMT</pubDate>
    <dc:creator>ChrisHemedinger</dc:creator>
    <dc:date>2019-01-04T16:19:41Z</dc:date>
    <item>
      <title>load proc http json results direct into dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/load-proc-http-json-results-direct-into-dataset/m-p/524471#M142632</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;options NOQUOTELENMAX;

filename usage "/folders/myfolders/sasuser.v94/usage.json";

%let AccessKey = reallylongstring;
	
proc http
 url="https://a.url"
 method="GET" out=usage;
 headers 
   "Authorization"="Bearer &amp;amp;AccessKey.";
run;

libname usage json "/folders/myfolders/sasuser.v94/usage.json";

data usage;
 set usage.data;
run;

proc print data=usage noobs;
run;&lt;/PRE&gt;&lt;P&gt;is it possible from the proc http to load the json data into the dataset instead of populating a file then loading the dataset from the file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 10:56:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/load-proc-http-json-results-direct-into-dataset/m-p/524471#M142632</guid>
      <dc:creator>Dwayne-Dibbley</dc:creator>
      <dc:date>2019-01-04T10:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: load proc http json results direct into dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/load-proc-http-json-results-direct-into-dataset/m-p/524590#M142664</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/251819"&gt;@Dwayne-Dibbley&lt;/a&gt;,&amp;nbsp;it's very doable.&amp;nbsp; Check out the blog post from&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;&lt;A href="https://blogs.sas.com/content/sasdummy/2016/12/02/json-libname-engine-sas/" target="_blank"&gt;https://blogs.sas.com/content/sasdummy/2016/12/02/json-libname-engine-sas/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;(I like the "Who is in space right now" example).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 16:11:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/load-proc-http-json-results-direct-into-dataset/m-p/524590#M142664</guid>
      <dc:creator>DaveHorne</dc:creator>
      <dc:date>2019-01-04T16:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: load proc http json results direct into dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/load-proc-http-json-results-direct-into-dataset/m-p/524597#M142669</link>
      <description>&lt;P&gt;Actually&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/251819"&gt;@Dwayne-Dibbley&lt;/a&gt;, assuming that the code you shared is working for you, that's exactly how you do it.&amp;nbsp; The JSON response comes back as a file, and then you use the JSON LIBNAME engine to read it.&amp;nbsp; It might (logically) contain several data sets that relate to each other, so this additional step is needed for SAS to interpret the data as you need it.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 16:19:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/load-proc-http-json-results-direct-into-dataset/m-p/524597#M142669</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2019-01-04T16:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: load proc http json results direct into dataset?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/load-proc-http-json-results-direct-into-dataset/m-p/526308#M143306</link>
      <description>Thanks tweaked the code as per the link&lt;BR /&gt;&lt;BR /&gt;off to the next project &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Fri, 11 Jan 2019 09:04:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/load-proc-http-json-results-direct-into-dataset/m-p/526308#M143306</guid>
      <dc:creator>Dwayne-Dibbley</dc:creator>
      <dc:date>2019-01-11T09:04:35Z</dc:date>
    </item>
  </channel>
</rss>

