data have;
input FirmID Year ;
cards;
1001 1995
1001 1996
1001 1997
1001 1998
1002 2011
1002 2012
1003 1992
1004 2015
1004 2016
1004 2017
;
proc sql;
create table want as
select *
from have
group by firmid
having count(year)>=3
order by firmid, year;
quit;
data have;
input FirmID Year ;
cards;
1001 1995
1001 1996
1001 1997
1001 1998
1002 2011
1002 2012
1003 1992
1004 2015
1004 2016
1004 2017
;
proc sql;
create table want as
select *
from have
group by firmid
having count(year)>=3
order by firmid, year;
quit;
Ready to join fellow brilliant minds for the SAS Hackathon?
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.