Thanks for your reply. I was able to create years, but in the process, the value of capital and interest also got fixed with the years. Maybe I have placed the code at a wrong place. Please, can you let me know the correct location? This is what my initial code was: data file; format Year Month Capital Interest; Principal = 4000; Deposits = 90; do until (Principal >= 100000); Interest = (Principal + Deposits) * 0.01; Capital = Interest + Capital; Month + 1; output; end; run;
... View more