BookmarkSubscribeRSS Feed
mauri0623
Quartz | Level 8

Hello and Happy Friday,

 

I have two tables that I want to replace the values of one by another. I need to replace the values of table Psudo_alcs with the values of real_alcs.

3 REPLIES 3
PeterClemmensen
Tourmaline | Level 20

I don't get this. Do you simply want to replace all values in one table with all the values from another table?

 

Then why not simply rename the second table?

mauri0623
Quartz | Level 8

Yes but how?

PeterClemmensen
Tourmaline | Level 20

Do like this. I just create an example data set a

 

data a;
    a=1;
run;

proc datasets lib=work nolist;
    change a=b;
run;quit;

So in your case, it will be something like

 

proc datasets lib=work nolist;
    change real_alcs=Psudo_alcs;
run;quit;

If your data is not in the work library, then change the lib= part

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 3 replies
  • 1441 views
  • 0 likes
  • 2 in conversation