Hi Experts,
I am not able to update one of the Core Dim tables on Postgres from a SAS Code.
I am using SAS AML 8.2 on 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.
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.
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 &syscc.,&sqlrc.,&syserr., &trans_rc, &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.
---------------------------------------------------------------------------------
/* %rcSet(&syscc); */
%let syscc = 0;
options validvarname=v7;
%put &syscc.;
/* target table: update change rows */
%if &etls_change_rows ge 1 %then
%do;
proc sql;
update CORE.CRE_PARTY_DIM as n
set
prty_date_of_birth = (select prty_date_of_birth from work.xxxxxxxxx as k
where n.prty_key = k.prty_key),
other Update columns conditions continue....
-------------------------------------------------------------------------------------------------------
At the moment we are having some SAS Server maintenance activities going on, hence not able to provide log info for now.
Please suggest if, I am missing any privileges on the table or anything else.
Not sure what a core table is, and if that itself has anything to do with your problem?
You should ba ble to look into your target DB logs to see what's going on.
But lack of auhorization seems to be plausible problem.
To get information from an implict SQL statement, add this to your code:
options msglevel=i sastrace = ',,,d' sastraceloc = saslog nostsuffix;
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.