Hello team,
Can someone tell me how to do joins (Left Outer Join, Inner Join) in SAS without using SQL?
Regards,
GN
Hi:
You will learn about SAS and the MERGE statement in the Programming 2 course. Are you in Programming 1 or Programming 2? The question you asked previously was in relation to the Programming 1 class. Are you working in Programming 1 in the Lesson on SQL? If so, what example are you asking about?
If you're just curious, here are some resources you might find enlightening:
https://support.sas.com/resources/papers/proceedings09/036-2009.pdf
https://support.sas.com/resources/papers/proceedings12/251-2012.pdf
https://www.lexjansen.com/nesug/nesug08/ff/ff03.pdf
Cynthia
Hi:
You will learn about SAS and the MERGE statement in the Programming 2 course. Are you in Programming 1 or Programming 2? The question you asked previously was in relation to the Programming 1 class. Are you working in Programming 1 in the Lesson on SQL? If so, what example are you asking about?
If you're just curious, here are some resources you might find enlightening:
https://support.sas.com/resources/papers/proceedings09/036-2009.pdf
https://support.sas.com/resources/papers/proceedings12/251-2012.pdf
https://www.lexjansen.com/nesug/nesug08/ff/ff03.pdf
Cynthia
Hello Cynthia,
This is a very good source. Thanks for sharing.
GN
Inner
data innerJoin;
merge table1 (in=A) table2 (in=B);
by ID:
if A & B;
run;
Outer Left Join
data outerLeft;
merge table1 (in=A) table2 (in=B);
by ID;
if A;
run;
@GN0001 wrote:
Hello team,
Can someone tell me how to do joins (Left Outer Join, Inner Join) in SAS without using SQL?
Regards,
GN
Hello Reeza,
I already have a certificate. I have not used SAS in the job market. I am refreshing my knowledge.
Regards,
Guity
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Follow along as SAS technical trainer Dominique Weatherspoon expertly answers all your questions about SAS Libraries.
Find more tutorials on the SAS Users YouTube channel.