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.
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
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.