it was from the code Reeza posted above:     data want;
    array myRand(10);
    do nrows=1 to 100;
         do nvars=1 to dim(myRand);
             myRand(i) = rand('normal', 50, 2);
         end;
         output;
    end;
run;  Error from log:  1    data want;
2        array myRand(10);
3
4        do nrows=1 to 100;
5             do nvars=1 to dim(myRand);
6                 myRand(i) = rand('normal', 50, 2);
7             end;
8             output;
9        end;
10   run;
NOTE: Variable i is uninitialized.
ERROR: Array subscript out of range at line 6 column 14.
myRand1=. myRand2=. myRand3=. myRand4=. myRand5=. myRand6=. myRand7=. myRand8=. myRand9=.
myRand10=. nrows=1 nvars=1 i=. _ERROR_=1 _N_=1
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.WANT may be incomplete.  When this step was stopped there were 0
         observations and 13 variables.
NOTE: DATA statement used (Total process time):
      real time           0.19 seconds
      cpu time            0.01 seconds 
						
					
					... View more