<?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: Make temporary JSON file data more permanent for further use in SAS project tree in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Make-temporary-JSON-file-data-more-permanent-for-further-use-in/m-p/696596#M37446</link>
    <description>&lt;P&gt;Create a permanent library.&lt;/P&gt;
&lt;P&gt;Instead of copying to WORK copy to that library.&lt;/P&gt;
&lt;P&gt;Clean up that permanent library as needed in the future.&lt;/P&gt;
&lt;P&gt;This will require you to reference the data in that permanent library using the library name and not the single level name.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Nov 2020 17:06:24 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-11-04T17:06:24Z</dc:date>
    <item>
      <title>Make temporary JSON file data more permanent for further use in SAS project tree</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Make-temporary-JSON-file-data-more-permanent-for-further-use-in/m-p/696591#M37445</link>
      <description>&lt;P&gt;I have the following code to load JASON output in to my SAS project:&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;filename&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; out &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;TEMP&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;filename&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; cacm &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;TEMP&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;http&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;url&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;'&lt;A href="https://XYZ.STU.com/api/now/table/...policy.contract_state_code&amp;amp;sysparm" target="_blank" rel="noopener"&gt;https://XYZ.STU.com/api/now/table/...policy.contract_state_code&amp;amp;sysparm&lt;/A&gt;'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;method&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;"GET"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;out&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=out&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;headerout&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=cacm&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;auth_basic&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;webusername&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;"cacm_rest_user"&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;webpassword&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;"XXXXXXXXXXXXXXXXXXXXX"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;libname&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; CACM json &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;"%sysfunc(pathname(out))"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;copy&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;inlib&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=cacm &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;outlib&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=WORK;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;libname&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; CACM JSON &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;"%sysfunc(pathname(out))"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; fileref=data;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; out;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; CACM.alldata;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;_null_&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;rc = jsonpp(&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;"data"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;"log"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;This works fine and gives me an "OUT" table, a "RESULT" table and an "ALLDATA" table.&amp;nbsp; However, it stops my process flow there unless I manually run the branch.&amp;nbsp; I want to continue the process flow, which clean up the data and joins with other tables in the SAS project.&amp;nbsp; I think I am missing a step to be able to use the output in these three tables as an input to other part of my SAS project.&amp;nbsp; I do get the following error when I run the above code:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;ERROR: Physical file does not exist, /config/sas94/Lev1/SASApp/data&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Any ideas?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 16:59:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Make-temporary-JSON-file-data-more-permanent-for-further-use-in/m-p/696591#M37445</guid>
      <dc:creator>gregor1</dc:creator>
      <dc:date>2020-11-04T16:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Make temporary JSON file data more permanent for further use in SAS project tree</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Make-temporary-JSON-file-data-more-permanent-for-further-use-in/m-p/696596#M37446</link>
      <description>&lt;P&gt;Create a permanent library.&lt;/P&gt;
&lt;P&gt;Instead of copying to WORK copy to that library.&lt;/P&gt;
&lt;P&gt;Clean up that permanent library as needed in the future.&lt;/P&gt;
&lt;P&gt;This will require you to reference the data in that permanent library using the library name and not the single level name.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 17:06:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Make-temporary-JSON-file-data-more-permanent-for-further-use-in/m-p/696596#M37446</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-11-04T17:06:24Z</dc:date>
    </item>
  </channel>
</rss>

