From: SAS User on
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
From: montura on
Two operations.

Perform the join first.
Then perform the update.
From: Tom Abernathy on
Data new;
merge a b(keep=col2 col1);
by col2;
run;

On Feb 25, 8:38 am, SAS User <sasuser2...(a)googlemail.com> wrote:
> 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