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.
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.