data want2 (drop=lastpop);
set have;
if pop=. then pop=lastpop*gr_pct;
retain lastpop;
lastpop=pop;
run;
This program assumes that the first observation always has a proper value for population. Also, anytime a new value for population is encountered in the input data step, the process start over.
... View more