data finance.earnings; Earned=0; do count=1 to 12; earned+(amount+earned)*(rate/12); output; end; run;
Copyright © 2002 SAS Institute Inc., Cary, NC, USA. All rights reserved.