<?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: SAS EG Stored Process wont update table in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Stored-Process-wont-update-table/m-p/831863#M41368</link>
    <description>Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;! As a solution, I modified an existing job to add the block of code that modifies/updates the data source of the dynamic list. Thank you so much for all of your help!</description>
    <pubDate>Tue, 06 Sep 2022 01:33:27 GMT</pubDate>
    <dc:creator>meatballs12345</dc:creator>
    <dc:date>2022-09-06T01:33:27Z</dc:date>
    <item>
      <title>SAS EG Stored Process wont update table</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Stored-Process-wont-update-table/m-p/830232#M41296</link>
      <description>&lt;P&gt;Hi SAS Community!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm currently working on existing stored process and I'm currently having trouble with debugging the issue we encounter on the stored process. Please bear with me since it's my first SP development and I honestly don't know much about SAS EG SP&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, the SP I'm working on has a list on its UI that is being by the users. This list shows the distinct values of all the Industry Type. Now the change is to add 2 new Industry Type but the catch is that it's from a different source table (LIB1.INST and LIB2.MASTER). I updated the code on SAS EG SP and it's not working. But when I manually test the code, it updates the table that will be the source of the Industry Type. Actually it's already on production and I don't know if there's anything else I need to have it working. Can you help me? Thank you so much!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="#800000"&gt;proc sql;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#800000"&gt;create table WORKSD7.EG_RCL_INST_X_FI_LIST_temp as&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#800000"&gt;select distinct case&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#800000"&gt;when XXXXXX in (0, 5) then 'Commercial Bank'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#800000"&gt;when XXXXXX in (1, 2, 3, 7) then 'Thrift Bank'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#800000"&gt;when XXXXXX in (4, 8 ) then 'Rural Bank'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#800000"&gt;when XXXXXX = 57 then 'Corporation'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#800000"&gt;else 'Non-Bank'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#800000"&gt;end as INDNAME length=35, INST as FINST, (XXXXXX * 10000) + ENTITY as BKCODE&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#800000"&gt;from LIB1.INST&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#800000"&gt;union&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#800000"&gt;select distinct case&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#800000"&gt;when XXXXXX = 31 then 'Pawnshop'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#800000"&gt;when XXXXXX = 60 then 'Money Service Businesses'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#800000"&gt;else 'Non-Bank'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#800000"&gt;end as INDNAME length=35, FCONAME as FINST, (XXXXXX * 100000) + ENTITY as BKCODE&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#800000"&gt;from LIB2.MASTER;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#800000"&gt;quit;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 06:46:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Stored-Process-wont-update-table/m-p/830232#M41296</guid>
      <dc:creator>meatballs12345</dc:creator>
      <dc:date>2022-08-25T06:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG Stored Process wont update table</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Stored-Process-wont-update-table/m-p/830235#M41297</link>
      <description>&lt;P&gt;Your Stored Process Server (and therefore all STP's) runs as user sassrv. Make sure that this user can overwrite the target dataset. Check this in SAS metadata and on the operating system level.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 07:26:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Stored-Process-wont-update-table/m-p/830235#M41297</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-08-25T07:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG Stored Process wont update table</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Stored-Process-wont-update-table/m-p/830236#M41298</link>
      <description>Hi Kurt! Thanks for your response, just to clarify, does this mean that that's the only possible issue when running the SP?</description>
      <pubDate>Thu, 25 Aug 2022 07:37:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Stored-Process-wont-update-table/m-p/830236#M41298</guid>
      <dc:creator>meatballs12345</dc:creator>
      <dc:date>2022-08-25T07:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG Stored Process wont update table</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Stored-Process-wont-update-table/m-p/830237#M41299</link>
      <description>&lt;P&gt;No. There may be other issues as well. Run the STP from the web interface and look at the log.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 07:41:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Stored-Process-wont-update-table/m-p/830237#M41299</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-08-25T07:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG Stored Process wont update table</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Stored-Process-wont-update-table/m-p/830486#M41305</link>
      <description>Unfortunately I'm not allowed to do so. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; I'm already running out of options. My senior told me that that's how they test SPs before, using the SASDEMO account in SAS EG. Another angle I'm looking at is the LIB2.MASTER is from DB2 (LIB1.INST is from AS400). They told me it has something to do with the way we extract data from DB2 and that I'm not aware of anymore. Are you familiar with that?&lt;BR /&gt;Thanks!</description>
      <pubDate>Fri, 26 Aug 2022 05:29:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Stored-Process-wont-update-table/m-p/830486#M41305</guid>
      <dc:creator>meatballs12345</dc:creator>
      <dc:date>2022-08-26T05:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG Stored Process wont update table</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Stored-Process-wont-update-table/m-p/830487#M41306</link>
      <description>&lt;P&gt;Are you using sasdemo to start the EG-session?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 06:17:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Stored-Process-wont-update-table/m-p/830487#M41306</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-08-26T06:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG Stored Process wont update table</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Stored-Process-wont-update-table/m-p/830489#M41307</link>
      <description>Yes. I'm using sasdemo user only. I'm not allowed to use other user account.</description>
      <pubDate>Fri, 26 Aug 2022 06:26:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Stored-Process-wont-update-table/m-p/830489#M41307</guid>
      <dc:creator>meatballs12345</dc:creator>
      <dc:date>2022-08-26T06:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG Stored Process wont update table</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Stored-Process-wont-update-table/m-p/830494#M41308</link>
      <description>&lt;P&gt;Fine. So what's the exact error message you get?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 07:09:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Stored-Process-wont-update-table/m-p/830494#M41308</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-08-26T07:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG Stored Process wont update table</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Stored-Process-wont-update-table/m-p/830499#M41309</link>
      <description>&lt;P&gt;As &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt; pointed out, the problem may very well come from the fact that the stored process server (and hence your code) runs under a generic account other than sasdemo.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may try and register your SP for execution in a workspace server. This has some performance implications (startup is slower) but it would mean your code will run under the sasdemo account. Some limitations apply due to the way (graphics) results are produced in a WSS. So it depends on your code if this is an option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are many other reasons for your code to fail in the STP server but this authorization issue is by far the most common one. But only the full log will tell.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;- Jan.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 07:24:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Stored-Process-wont-update-table/m-p/830499#M41309</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2022-08-26T07:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG Stored Process wont update table</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Stored-Process-wont-update-table/m-p/830507#M41310</link>
      <description>&lt;P&gt;A&amp;nbsp;&lt;STRONG&gt;test&lt;/STRONG&gt; means to run code in its final destination and setup, everything else is useless bogus. If your code is intended to be used in the STP server environment and from the interfaces SAS provides for this, you have to test exactly that, period. If your senior demands else, then that's a clear sign that your senior is a clueless noob.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See Maxim 36.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 08:35:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Stored-Process-wont-update-table/m-p/830507#M41310</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-08-26T08:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG Stored Process wont update table</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Stored-Process-wont-update-table/m-p/830529#M41311</link>
      <description>&lt;P&gt;Argh! I banned the sasdemo ages ago. Whenever doing a SAS installation I deselect the creation of that account. Once there it usually stays forever. I am not a fan (understatement) of non-personal accounts for tasks like querying data and doing stuff on systems in general. It usually points at lazy admins or the lack of strategic vision.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 10:22:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Stored-Process-wont-update-table/m-p/830529#M41311</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2022-08-26T10:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG Stored Process wont update table</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Stored-Process-wont-update-table/m-p/830538#M41313</link>
      <description>&lt;P&gt;IIRC, sasdemo is an internal user which cannot be used anyway for a non-pooled workspace server.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 11:20:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Stored-Process-wont-update-table/m-p/830538#M41313</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-08-26T11:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG Stored Process wont update table</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Stored-Process-wont-update-table/m-p/831017#M41341</link>
      <description>Really appreciate your feedback guys. Just to clarify the issue, I don't know if you'll be able to visualize it, but when I right click on the SP and hit the RUN &amp;lt;Stored Process&amp;gt;, the list prompt on the interface is NOT YET updated. I cannot proceed with using the SP because the interface list prompt is not updated. The code I provided above is the piece of code that re-creates the data source for the list prompt.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Aug 2022 01:17:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Stored-Process-wont-update-table/m-p/831017#M41341</guid>
      <dc:creator>meatballs12345</dc:creator>
      <dc:date>2022-08-30T01:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG Stored Process wont update table</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Stored-Process-wont-update-table/m-p/831078#M41346</link>
      <description>&lt;P&gt;You cannot expect a stored process to update its own parameters. You need to create a chain of STPs where the first updates the dataset and then calls the second.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 12:29:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Stored-Process-wont-update-table/m-p/831078#M41346</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-08-30T12:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG Stored Process wont update table</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Stored-Process-wont-update-table/m-p/831863#M41368</link>
      <description>Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;! As a solution, I modified an existing job to add the block of code that modifies/updates the data source of the dynamic list. Thank you so much for all of your help!</description>
      <pubDate>Tue, 06 Sep 2022 01:33:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Stored-Process-wont-update-table/m-p/831863#M41368</guid>
      <dc:creator>meatballs12345</dc:creator>
      <dc:date>2022-09-06T01:33:27Z</dc:date>
    </item>
  </channel>
</rss>

