You are on page 1of 1

data add;

sum=0;
sum+1;
sum+2;
sum+3;
sum+4;
sum+5;
sum+6;
sum+7;
sum+8;
sum+9;
sum+10;
run;
proc print data=add;
run;

data add2;
sum=0;
do time = 1 to 100;
sum+time;
output;
end;
run;
proc print data=add2;
run;

data add3;
sum=0;
do time = 1 to 100 by 2;
sum+time;
output;
end;
run;
proc print data=add3;
run;

You might also like