Hi, I need help running this! data A; do y=1 to 300; if y < 5 and (1<x<6) then do; do i=1 to 7; do while (y-i>0); B=(1-A(y-i)); end; end; end; end; output; run; So, I already have values for A(y) i.e. A(1), A(2),...A(300) E.g. if y=4 then B= (1-A(4-1))*(1-A(4-2))*(1-A(4-3)) Thanks!
... View more