Hi Sharmas, Try this..Hope it helps.. data have1(drop=date); input Date $ Identifier Value; date1 = mdy( substr(date,1,2), 1, substr(date,3,4) ); format date1 monyy7.; cards; 011980 3424 2.4 021980 3543 4.3 031980 432 5.5 121980 4332 011981 423 ; run; proc sort data=have1 ; by Identifier ; run; data have2(drop=date i); input Date Identifier Value; do i=1 to 12; date1=intnx('month',input(compress('Jan'||date),monyy7.),i); output; end; format date1 monyy7.; cards; 1979 432 4.2 1980 4332 1.2 1981 423 2.2 ; run; proc sort data=have2 ;by identifier ;run; data want; merge have1(in=a) have2(in=b); by identifier ; if b and a; run; Thanks, Shiva
... View more