Hi team,
I have two tables
Need the output will be like below by using SAS code.Please help me to do this.
Thanks,
harish
Remember, two variables can not have the same name.
Do something like this
data tableA; input slno Name $; datalines; 1 HARISH 2 GIRISH 4 RAMYA 5 RAMU 6 RAVI ; data tableB; input slNo working $; datalines; 3 tcs 5 tcs 2 cts 1 hp 4 wipro 5 ge 7 NA ; data want; merge tableA tableB(rename=(slNo=slNo_B)); run;
Thanks for your help.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Latest Updates
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.