OK. Then dow loop provided might need a modification.
*case of multiple death obs;
data have;
infile datalines dlm="09"x;
input ID $ Transaction Age Death Parameter $;
datalines;
6 1 . . A
6 2 . . B
6 3 . . C
6 . 3 3.45
8 1 . A
8 2 . B
8 3 . C
8 . 2 12
8 . 2 11
8 . 2 10
9 1 . A
9 2 . B
9 3 . C
9 . 2 11
9 . 2 12
9 . 2 13
9 . 2 11
;
run;
*1;
data want;
do until(last.id);
set have;
by id;
v=max(death,v);
end;
do until(last.id);
set have;
by id;
if Parameter eq 'B' then
value=v;
else call missing(value);
output;
end;
drop v;
run;