BookmarkSubscribeRSS Feed
LeeJenson
Calcite | Level 5
Hi,
I don't mind if the solution is in PROC SQL or datastep but I am
struggling with how to do this:-

a=tablea
b=tableb

update tablea
set a.col1 = b.col1
where a.col2 = b.col2

Regards
Lee Message was edited by: Lee2010
2 REPLIES 2
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
One option: a DATA step using properly sorted input and a MERGE with a BY statement.

Scott Barry
SBBWorks, Inc.

Recommended Google advanced search argument, this topic/post:

merge processing site:sas.com
LeeJenson
Calcite | Level 5
Thanks Scott

the merge worked fine.

Lee

SAS Innovate 2025: Register Today!

 

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 848 views
  • 0 likes
  • 2 in conversation