Hello, I am new to SAS and would like to accomplish the following task: the first one creates 100 variables, the second code piece takes the average of the 100 values (call this variable A1). My question: I wish to repeat this 2000 times, so that I have a dataset of 2000 observations of A1, but I don't know how to modify the code... Thanks!! data rand; call streaminit(-1); do i = 1 to 100; x = rand("Normal")*5+1; output; end; run; proc means noprint data=rand; output out=rand (drop=_type_ _freq_) mean(x)=A1; run;
... View more