<?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 UPDATE a CORE TABLE Postgres via SAS Studio. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/UPDATE-a-CORE-TABLE-Postgres-via-SAS-Studio/m-p/766157#M242780</link>
    <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not able to update one of the Core Dim tables on Postgres from a SAS Code.&lt;/P&gt;&lt;P&gt;I am using SAS AML 8.2 on&amp;nbsp; SAS Viya3.5. have modified the existing SAS DI Jobs and trying to run the SAS programs on SAS Studio I'm not sure why I am not able to update the table Postgres Core table, but I am able to insert rows into the same table.&lt;/P&gt;&lt;P&gt;Kindly note that I have not tried updating any other Core Tables as I need to make changes to SAS programs to insert or update records to other Dim tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;I have tried adding messages before the update query, the messages are printed but the update query is not initiating, or even if it's initiated I don't see any Error messages, Warning with respect to the update and SAS stops processing. I have also reset the &amp;amp;syscc.,&amp;amp;sqlrc.,&amp;amp;syserr., &amp;amp;trans_rc, &amp;amp;trans_rc to 0. which should not stop the code from processing. Please find the update query below that has changed the names of the table and variables.&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;/* %rcSet(&amp;amp;syscc); */&lt;BR /&gt;%let syscc = 0;&lt;BR /&gt;options validvarname=v7;&lt;BR /&gt;%put &amp;amp;syscc.;&lt;/P&gt;&lt;P&gt;/* target table: update change rows */&lt;BR /&gt;%if &amp;amp;etls_change_rows ge 1 %then&lt;BR /&gt;%do;&lt;BR /&gt;proc sql;&lt;BR /&gt;update CORE.CRE_PARTY_DIM as n&lt;BR /&gt;set&lt;BR /&gt;prty_date_of_birth = (select prty_date_of_birth from work.xxxxxxxxx as k&lt;BR /&gt;where n.prty_key = k.prty_key),&lt;/P&gt;&lt;P&gt;other Update columns conditions continue....&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;At the moment we are having some SAS Server maintenance activities going on, hence not able to provide log info for now.&lt;/P&gt;&lt;P&gt;Please suggest if, I am missing any privileges on the table or anything else.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Sep 2021 03:23:43 GMT</pubDate>
    <dc:creator>Santt0sh</dc:creator>
    <dc:date>2021-09-06T03:23:43Z</dc:date>
    <item>
      <title>UPDATE a CORE TABLE Postgres via SAS Studio.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/UPDATE-a-CORE-TABLE-Postgres-via-SAS-Studio/m-p/766157#M242780</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not able to update one of the Core Dim tables on Postgres from a SAS Code.&lt;/P&gt;&lt;P&gt;I am using SAS AML 8.2 on&amp;nbsp; SAS Viya3.5. have modified the existing SAS DI Jobs and trying to run the SAS programs on SAS Studio I'm not sure why I am not able to update the table Postgres Core table, but I am able to insert rows into the same table.&lt;/P&gt;&lt;P&gt;Kindly note that I have not tried updating any other Core Tables as I need to make changes to SAS programs to insert or update records to other Dim tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;I have tried adding messages before the update query, the messages are printed but the update query is not initiating, or even if it's initiated I don't see any Error messages, Warning with respect to the update and SAS stops processing. I have also reset the &amp;amp;syscc.,&amp;amp;sqlrc.,&amp;amp;syserr., &amp;amp;trans_rc, &amp;amp;trans_rc to 0. which should not stop the code from processing. Please find the update query below that has changed the names of the table and variables.&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;/* %rcSet(&amp;amp;syscc); */&lt;BR /&gt;%let syscc = 0;&lt;BR /&gt;options validvarname=v7;&lt;BR /&gt;%put &amp;amp;syscc.;&lt;/P&gt;&lt;P&gt;/* target table: update change rows */&lt;BR /&gt;%if &amp;amp;etls_change_rows ge 1 %then&lt;BR /&gt;%do;&lt;BR /&gt;proc sql;&lt;BR /&gt;update CORE.CRE_PARTY_DIM as n&lt;BR /&gt;set&lt;BR /&gt;prty_date_of_birth = (select prty_date_of_birth from work.xxxxxxxxx as k&lt;BR /&gt;where n.prty_key = k.prty_key),&lt;/P&gt;&lt;P&gt;other Update columns conditions continue....&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;At the moment we are having some SAS Server maintenance activities going on, hence not able to provide log info for now.&lt;/P&gt;&lt;P&gt;Please suggest if, I am missing any privileges on the table or anything else.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Sep 2021 03:23:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/UPDATE-a-CORE-TABLE-Postgres-via-SAS-Studio/m-p/766157#M242780</guid>
      <dc:creator>Santt0sh</dc:creator>
      <dc:date>2021-09-06T03:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: UPDATE a CORE TABLE Postgres via SAS Studio.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/UPDATE-a-CORE-TABLE-Postgres-via-SAS-Studio/m-p/766175#M242791</link>
      <description>&lt;P&gt;Not sure what a core table is, and if that itself has anything to do with your problem?&lt;/P&gt;
&lt;P&gt;You should ba ble to look into your target DB logs to see what's going on.&lt;/P&gt;
&lt;P&gt;But lack of auhorization seems to be plausible problem.&lt;/P&gt;
&lt;P&gt;To get information from an implict SQL statement, add this to your code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options msglevel=i sastrace = ',,,d' sastraceloc = saslog nostsuffix;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Sep 2021 08:27:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/UPDATE-a-CORE-TABLE-Postgres-via-SAS-Studio/m-p/766175#M242791</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2021-09-06T08:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: UPDATE a CORE TABLE Postgres via SAS Studio.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/UPDATE-a-CORE-TABLE-Postgres-via-SAS-Studio/m-p/766200#M242804</link>
      <description>Thanks for the reply!!!!&lt;BR /&gt;&lt;BR /&gt;Core tables are nothing but Database tables which will be used to create&lt;BR /&gt;reports.&lt;BR /&gt;&lt;BR /&gt;I have tried all the options, I have also added the log options mentioned&lt;BR /&gt;below but as the services were under maintenance I was not able share the&lt;BR /&gt;logs.&lt;BR /&gt;&lt;BR /&gt;I don’t think Permission is an issue because I am able to insert records&lt;BR /&gt;into the cre.prty_dim table but not able to update the records.&lt;BR /&gt;&lt;BR /&gt;I hope the services will be up soon I’ll try to run the code and share the&lt;BR /&gt;logs here.&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Sep 2021 11:53:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/UPDATE-a-CORE-TABLE-Postgres-via-SAS-Studio/m-p/766200#M242804</guid>
      <dc:creator>Santt0sh</dc:creator>
      <dc:date>2021-09-06T11:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: UPDATE a CORE TABLE Postgres via SAS Studio.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/UPDATE-a-CORE-TABLE-Postgres-via-SAS-Studio/m-p/766226#M242819</link>
      <description>INSERT and UPDATE are two different permissions in Postresql, so I wouldn't rule that out...&lt;BR /&gt;&lt;BR /&gt;GRANT { { SELECT | INSERT | UPDATE | DELETE | TRUNCATE | REFERENCES | TRIGGER }&lt;BR /&gt;    [, ...] | ALL [ PRIVILEGES ] }&lt;BR /&gt;    ON { [ TABLE ] table_name [, ...]&lt;BR /&gt;         | ALL TABLES IN SCHEMA schema_name [, ...] }&lt;BR /&gt;    TO { [ GROUP ] role_name | PUBLIC } [, ...] [ WITH GRANT OPTION ]</description>
      <pubDate>Mon, 06 Sep 2021 13:53:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/UPDATE-a-CORE-TABLE-Postgres-via-SAS-Studio/m-p/766226#M242819</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2021-09-06T13:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: UPDATE a CORE TABLE Postgres via SAS Studio.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/UPDATE-a-CORE-TABLE-Postgres-via-SAS-Studio/m-p/766446#M242906</link>
      <description>Hi,&lt;BR /&gt;Thanks for your help,&lt;BR /&gt;DBIDIRECTEXEC was missing from Autoexec's...&lt;BR /&gt;After the Admin added it, it started working....&lt;BR /&gt;&lt;BR /&gt;Appreciate all the Help and Suggestions!!!!</description>
      <pubDate>Tue, 07 Sep 2021 18:01:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/UPDATE-a-CORE-TABLE-Postgres-via-SAS-Studio/m-p/766446#M242906</guid>
      <dc:creator>Santt0sh</dc:creator>
      <dc:date>2021-09-07T18:01:16Z</dc:date>
    </item>
  </channel>
</rss>

