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-2024.png

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.

 

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
  • 705 views
  • 0 likes
  • 2 in conversation