This is what is being asked: and the program I wrote to answer the question about the above value of salary with 2028 as the last year being written to the output table: data results.output12;
set cert.input12;
do until (Salary>500000);
Salary+(Salary*0.0565);
Year+1;
output;
end;
run; As you said, if I run instead: data results.output12;
set cert.input12;
do until (Salary>500000);
Salary+(Salary*0.0565);
output;
Year+1;
end;
run; the last year written to the output table is 2027. Is that what you mean, right? Maybe, being a native Italian speaker, I did not properly understand what is required. Is there an essential part in how the requested steps are formulated that clears out the fact that Year should be increased by one only after the salary has already been increased by 5.65% within the one and only value of year available in the source data set? I feel like the order of the steps as they are requested does not help at all. Plus, as you said, there is no context explanation so it would be quite a matter of luck to get the whole thing right just by intuition. Just my opinion.
... View more