Hello. I have a panel with isin codes as company IDs and years from 2009 to 2017.The coverage for the companies are not proportional. Some have data only for one year and some have for all years. Now I want to keep only the companies that have data for the years 2013 to 2016. How can I code for this? And is it possible to create a new variable called firm-year that combines the isin codes and the years of coverage?
Show a small sample of input data and corresponding required output. No Excel files attachment please.
can I take screenshot?
The data step manual in the forum was complicated for me because I'm not a professional programmer.
We can handle data in text form. Both for input and required output.
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.
Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.
Find more tutorials on the SAS Users YouTube channel.