01-24-2016 05:55 AM - edited 01-24-2016 05:57 AM
I am not sure what is the output you seeking is look like exactly ;
But maybe this is what you want
data A; do y=1 to 200; do i = 1 to 5 while (y-i>0); x=(y-i)*3; output; end; end; run;
So you will have two loops one for y and the other for i
and each loop should end by END; statment.