Data test6;
retainPrevScore;
PrevScore = Score;
set test5;
byid;
iffirst.id then
do;
PrevScore = '';
end;
IFMISSING(Score) THEN DO;
Score=PrevScore*(1.05);
END;
run;