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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 1035 views
  • 0 likes
  • 2 in conversation