<?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 How to load results from Execute Decision to OUTPUT table? in Decisioning</title>
    <link>https://communities.sas.com/t5/Decisioning/How-to-load-results-from-Execute-Decision-to-OUTPUT-table/m-p/862605#M60</link>
    <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried using the Execute Decisions Node in SAS Studio. The Flow is able to execute successfully.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcawesome_0-1678165092948.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81125iED0A89F9961975AB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcawesome_0-1678165092948.png" alt="jcawesome_0-1678165092948.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I can see the output result in this temp table in CAS.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcawesome_1-1678165237052.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81126i803C4080B15BA60E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcawesome_1-1678165237052.png" alt="jcawesome_1-1678165237052.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;However, I don't see the data appended into the permanent CAS table I loaded (called 'SAMPLE_OUTPUT').&lt;/P&gt;
&lt;P&gt;Questions:&lt;/P&gt;
&lt;P&gt;1. Is it possible to load output results of the 'Execute Decision' node in SAS Studio into a table? After checking the SAS documentation, it doesn't show how to do this if it is possible.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/webeditorflows/v_001/p0h7s4r2t3uskpn0zh1x20gnze4p.htm#n0lja0dpdly6ujn1nnwgruh2flhz" target="_blank"&gt;https://documentation.sas.com/doc/en/webeditorflows/v_001/p0h7s4r2t3uskpn0zh1x20gnze4p.htm#n0lja0dpdly6ujn1nnwgruh2flhz&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;2. If YES, how do I go about it? Are there any sample instructions online from SAS?&lt;/P&gt;
&lt;P&gt;3. If NO, how does SAS expect the users to make use of the 'Execute Decision' node if results cannot be pulled out, processed and verified?&lt;/P&gt;
&lt;P&gt;Output Variables (Execute Decision Node)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcawesome_2-1678165473462.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81127i1DFDFFA47DE892AF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcawesome_2-1678165473462.png" alt="jcawesome_2-1678165473462.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;SAMPLE_OUTPUT table published columns. I matched the exact name with the Output of the Decision Flow.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcawesome_3-1678165496024.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81128i7627E35A0B2C9E62/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcawesome_3-1678165496024.png" alt="jcawesome_3-1678165496024.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note:&lt;/P&gt;
&lt;P&gt;I'm using Postgres DB. This DB has been configured already in SAS Viya.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jan Carlo (JC)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Mar 2023 05:10:13 GMT</pubDate>
    <dc:creator>jcawesome</dc:creator>
    <dc:date>2023-03-07T05:10:13Z</dc:date>
    <item>
      <title>How to load results from Execute Decision to OUTPUT table?</title>
      <link>https://communities.sas.com/t5/Decisioning/How-to-load-results-from-Execute-Decision-to-OUTPUT-table/m-p/862605#M60</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried using the Execute Decisions Node in SAS Studio. The Flow is able to execute successfully.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcawesome_0-1678165092948.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81125iED0A89F9961975AB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcawesome_0-1678165092948.png" alt="jcawesome_0-1678165092948.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I can see the output result in this temp table in CAS.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcawesome_1-1678165237052.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81126i803C4080B15BA60E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcawesome_1-1678165237052.png" alt="jcawesome_1-1678165237052.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;However, I don't see the data appended into the permanent CAS table I loaded (called 'SAMPLE_OUTPUT').&lt;/P&gt;
&lt;P&gt;Questions:&lt;/P&gt;
&lt;P&gt;1. Is it possible to load output results of the 'Execute Decision' node in SAS Studio into a table? After checking the SAS documentation, it doesn't show how to do this if it is possible.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/webeditorflows/v_001/p0h7s4r2t3uskpn0zh1x20gnze4p.htm#n0lja0dpdly6ujn1nnwgruh2flhz" target="_blank"&gt;https://documentation.sas.com/doc/en/webeditorflows/v_001/p0h7s4r2t3uskpn0zh1x20gnze4p.htm#n0lja0dpdly6ujn1nnwgruh2flhz&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;2. If YES, how do I go about it? Are there any sample instructions online from SAS?&lt;/P&gt;
&lt;P&gt;3. If NO, how does SAS expect the users to make use of the 'Execute Decision' node if results cannot be pulled out, processed and verified?&lt;/P&gt;
&lt;P&gt;Output Variables (Execute Decision Node)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcawesome_2-1678165473462.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81127i1DFDFFA47DE892AF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcawesome_2-1678165473462.png" alt="jcawesome_2-1678165473462.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;SAMPLE_OUTPUT table published columns. I matched the exact name with the Output of the Decision Flow.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcawesome_3-1678165496024.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81128i7627E35A0B2C9E62/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcawesome_3-1678165496024.png" alt="jcawesome_3-1678165496024.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note:&lt;/P&gt;
&lt;P&gt;I'm using Postgres DB. This DB has been configured already in SAS Viya.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jan Carlo (JC)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 05:10:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Decisioning/How-to-load-results-from-Execute-Decision-to-OUTPUT-table/m-p/862605#M60</guid>
      <dc:creator>jcawesome</dc:creator>
      <dc:date>2023-03-07T05:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to load results from Execute Decision to OUTPUT table?</title>
      <link>https://communities.sas.com/t5/Decisioning/How-to-load-results-from-Execute-Decision-to-OUTPUT-table/m-p/862611#M61</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I managed to export out the table by using a SAS program in SAS Studio. I first declared a PostgresDB Library. Then loaded the data from the CAS table (CASPG.SAMPLE_OUTPUT) into the postgres table (PGDB.SAMPLE_OUTPUT).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My guess is that the CASPG library that I defined is a CAS library (loads data in-memory) hence the data doesn't really flow out to the DB.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcawesome_0-1678167624636.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81129i1D40BAD000D0A19E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcawesome_0-1678167624636.png" alt="jcawesome_0-1678167624636.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I repointed the TABLE node into the PGDB library.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcawesome_1-1678167893056.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81130iE9C3C207389C1FD6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcawesome_1-1678167893056.png" alt="jcawesome_1-1678167893056.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I truncated the data in the Postgres DB. Then I rerun the flow again. The data is now showing in the database.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcawesome_2-1678168004526.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/81131iE3460C72C089A47D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcawesome_2-1678168004526.png" alt="jcawesome_2-1678168004526.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If anyone else has another solution or best practice for handling this node, please do share with the community. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;JC&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2023 05:48:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Decisioning/How-to-load-results-from-Execute-Decision-to-OUTPUT-table/m-p/862611#M61</guid>
      <dc:creator>jcawesome</dc:creator>
      <dc:date>2023-03-07T05:48:19Z</dc:date>
    </item>
  </channel>
</rss>

