Please clear my confusion on the below explained scenario I have a dataset salary with below observations obs salary 1 23456 2 12245 3 34500 4 44000 5 34435 i ran the below code data tt;
do until(totalsal ge 50000);
set salary;
totalsal + salary;
end;
run; and i get result as: obs salary totalsal 1 23456 23456 2 12245 35701 3 34500 70201 but when i ran the below code data tt;
do until(totalsal ge 50000);
set salary;
totalsal + salary;
output;
end;
run; and i get result as: obs salary totalsal 1 23456 23456 2 12245 35701 3 34500 70201 4 44000 114201 5 34435 148636 Please explain why is there a difference in the output, as i have already put the condition to continue the process only till the "TOTALSAL" reaches 50000 or more?
... View more