SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Generating Data with DO Loops
Nesting DO Loops


Question: In the example below, the variable x is summed during each iteration of the nested DO loop. What is the value of x at the completion of this DATA step?
     data test;
        do i=1 to 5;
           do j=1 to 4;
              x+1;
           end;
        end;
     run;

           


  back||next

 

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

Terms of Use & Legal Information | Privacy Statement