BookmarkSubscribeRSS Feed
alinik71
Calcite | Level 5

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?

3 REPLIES 3
PGStats
Opal | Level 21

Show a small sample of input data and corresponding required output. No Excel files attachment please.

PG
alinik71
Calcite | Level 5

can I take screenshot?

The data step manual in the forum was complicated for me because I'm not a professional programmer.

PGStats
Opal | Level 21

We can handle data in text form. Both for input and required output.

PG

sas-innovate-white.png

🚨 Early Bird Rate Extended!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Lock in the best rate now before the price increases on April 1.

Register now!

How to connect to databases in SAS Viya

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.

Discussion stats
  • 3 replies
  • 1063 views
  • 0 likes
  • 2 in conversation