How to fill in rows using a previous string value

data your_data;

set your_data;

if var ne . then var1=var;

else var=var1;

retain var1;

drop var1;

run;

 

Leave a Reply