data have;
input FirmID Beginning End;
cards;
1001 1998 2005
1002 1982 2000
;
data want;
set have;
do year=Beginning to end;
age=year-Beginning+1;
output;
end;
drop Beginning End;
run;
data have;
input FirmID Beginning End;
cards;
1001 1998 2005
1002 1982 2000
;
data want;
set have;
do year=Beginning to end;
age=year-Beginning+1;
output;
end;
drop Beginning End;
run;
Register Today!
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.