SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Generating Data with DO Loops
Constructing DO Loops


Question: How many observations will the data set Finance.Earnings contain?
     data finance.earnings;
        Earned=0;
        do count=1 to 12;
           earned+(amount+earned)*(rate/12);
           output;
        end;
     run;

           


  back||next

 

Copyright © 2002 SAS Institute Inc., Cary, NC, USA. All rights reserved.

Terms of Use & Legal Information | Privacy Statement