Hi,
I have a seemingly easy question. I would like to know if there is any easy way to do it.
There are two datasets A and B, both include a variable stock id (ID). A is a very comprehensive one that has many more ids than B. Now I want to merge two together to get any IDs in A that are not in B. How to do it? Can I do it in proc sql?
Thanks.
Yes you can do it in proc sql. Use a left join.
Abraham Mathew on Twitter: "Hands down, one of the most important works of art EVER! http://t.co/AeaYZGjGvg"
Yes you can do it in proc sql. Use a left join.
Abraham Mathew on Twitter: "Hands down, one of the most important works of art EVER! http://t.co/AeaYZGjGvg"
Cool. Thanks!
use proc_sql under left join
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.