hi,
what should be the code ?
In the SMB usage data create another column to identify churners by using Product_ID as key variable (check if the key variable is unique ID in this case ).The list of churners is given in the 'Churners and labels' along with churn month .Use left join or Right Join?
Hi Prateek1,
Looking at your data on the "Churners" sheet, I see that for each unique PRODUCT_ID there is only one unique value of churn_month, is that correct? To shorten your list and get a list of unique PRODUCT_IDs with their associated churn_month values,
proc sql;
select distinct(PRODUCT_ID), churn_month from Churners;
quit;
John
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.