Hi All, I had asked a similar question, where the table was getting into the update query which was solved by adding DBDIRECTEXEC to the Autoexec files. But this time while updating I'm facing another issue. When I am trying to update the Postgres table with a SAS dataset (WORK.W25P3TOZ) I'm getting the below error: ERROR: CLI execute error: ERROR: relation "work.w25p3toz" does not exist; Error while executing the query. I have made sure the Data length and type match with the Postgres table. I remember I have updated the oracle tables using the Pass-thru facility and libname. Here the Libname facility doesn't work and keeps running for ages and after completion of the update query or canceling the query No message is displayed nor any Error is displayed. but when I try to create the Work, w25p3toz dataset on the schema the update works. I also tried updating the Postgres table using the SAS data step update, but it didn't work. Can any of the Experts suggest to me how do I update the Postgres table from a SAS Dataset? proc sql; connect to postgres as PSTGRE1 (server="xxxxxxxxxxx.abcdefghik.in-south-1.rds.amazonaws.com" database="yyyyyyyy" user="lllllll" password="XyuIkIOILJM<" connection=global); execute (update CORE.FSC_PARTY_DIM as m set party_date_of_birth=(select party_date_of_birth from WORK.W25P3TOZ as t where m.party_key=t.party_key), residence_country_code=(select residence_country_code from WORK.W25P3TOZ as t where m.party_key=t.party_key), citizenship_country_code=(select citizenship_country_code from WORK.W25P3TOZ as t where m.party_key=t.party_key), org_country_of_business_code=(select org_country_of_business_code from WORK.W25P3TOZ as t where m.party_key=t.party_key), email_address=(select email_address from WORK.W25P3TOZ as t where m.party_key=t.party_key), phone_number_1=(select phone_number_1 from WORK.W25P3TOZ as t where m.party_key=t.party_key), phone_number_2=(select phone_number_2 from WORK.W25P3TOZ as t where m.party_key=t.party_key), phone_number_3=(select phone_number_3 from WORK.W25P3TOZ as t where m.party_key=t.party_key), occupation_desc=(select occupation_desc from WORK.W25P3TOZ as t where m.party_key=t.party_key), party_type_desc=(select party_type_desc from WORK.W25P3TOZ as t where m.party_key=t.party_key), party_tax_id=(select party_tax_id from WORK.W25P3TOZ as t where m.party_key=t.party_key), party_identification_id=(select party_identification_id from WORK.W25P3TOZ as t where m.party_key=t.party_key), party_identification_type_desc=(select party_identification_type_desc from WORK.W25P3TOZ as t where m.party_key=t.party_key), party_id_state_code=(select party_id_state_code from WORK.W25P3TOZ as t where m.party_key=t.party_key), customer_since_date=(select customer_since_date from WORK.W25P3TOZ as t where m.party_key=t.party_key), doing_business_as_name=(select doing_business_as_name from WORK.W25P3TOZ as t where m.party_key=t.party_key), ultimate_parent_name=(select ultimate_parent_name from WORK.W25P3TOZ as t where m.party_key=t.party_key), party_name=(select party_name from WORK.W25P3TOZ as t where m.party_key=t.party_key) WHERE exists (select * from WORK.W25P3TOZ t WHERE m.party_key=t.party_key)) by PSTGRE1; disconnect from PSTGRE1; Quit;
... View more