As @LinusH pointed at, what you need is:
proc sql;
update sasuser.A as a
set cat1 = (select Category from sasuser.B where id=a.id);
quit;
(untested)
As @LinusH pointed at, what you need is:
proc sql;
update sasuser.A as a
set cat1 = (select Category from sasuser.B where id=a.id);
quit;
(untested)
Thanks , it worked.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.