proc sql;create table out as select * ,count(*) as cnt from ANNO_chen group by stkcd, year having count(*)>1;quit;