This is the code, x3 is a cumulative variable. When the second DO finishes (j=x1), x3 has the total sum for the first iteration of the first DO. What I want is to create a data set with those totals. Because I have to work with that data, caculating percentiles, etc..
data A;
do i=1 to 1000;
x1=ranpoi(123,68);
x3=0;
do j=1 to x1;
x2=exp(3.52918406+0.65656975*rannor(123));
x3=x3+x2;
output;
end;
output;
end;
run;