[code:2qurng93]data raw(drop=i);
array x{99};
do i=1 to 99;
x(i)=ceil(10*ranuni(1223456));
end;
run;
data out(keep=y:);
set raw;
array x{*} x1-x99;
array y{97};
do i=1 to dim(y);
y(i)=mean(x(i),x(i+1),x(i+2));
end;
run;[/code:2qurng93]
when missing value exist, the mean will create a no missing value if there are at least one no missing value present and logically the denominator will not the 3.