SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Processing Variables with Arrays
Creating One-Dimensional Arrays


Question: In the field below, write an iterative DO statement that uses the DIM function to execute the DO loop from 1 to the dimension of the prod array. Use i as the index variable.
data finance.newprod;
   set finance.prod;
   array prod{75} $ prod1-prod75;
   
      prod(i)=trim(prod(i))||'N';
   end;
run;

           

  back||next


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

Terms of Use & Legal Information | Privacy Statement