I want to update the target table with some values from another table.I tried using update transformation and table-loader,it didn't work.
My target table has a column note_type with values 'GRAD' and 'note'.I want to update the column reason_code for only 'NOTE' from another worktable in sas di.Could anyone let me know please.
Hello @s260m107,
Your question requires more details before experts can help. Can you revise your question to include more information?
Review this checklist:
To edit your original message, select the "blue gear" icon at the top of the message and select Edit Message. From there you can adjust the title and add more details to the body of the message. Or, simply reply to this message with any additional information you can supply.
SAS experts are eager to help -- help them by providing as much detail as you can.
This prewritten response was triggered for you by fellow SAS Support Communities member @PGStats
.
@s260m107 wrote:
I want to update the target table with some values from another table.I tried using update transformation and table-loader,it didn't work.
My target table has a column note_type with values 'GRAD' and 'note'.I want to update the column reason_code for only 'NOTE' from another worktable in sas di.Could anyone let me know please.
DIS questions are best asked in the Data Management forum here.
From what you describe the SQL Update transformation feels right.
"it didn't work" is very vague. Assuming this means the job run without errors but the target table did't get updated: Most likely code is that you either didn't set-up the transformation as you should or the data in the key column is not matching (eventually wrap an upcase(compress(note_type) around the column (for both source and target table column).
To investigate what's happening: Have a look into the generated SQL Update code. Does it look right? Else start changing the configuration for the SQL Update transformation until the generated SQL code looks right. Eventually post the generated code here.
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.