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.
Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.
View the full agenda.
Register now!
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.