Hi, It rather looks much too simple and so I'm afraid perhaps my understanding could be wrong somewhere wrong. Is this what you really want? data rand; call streaminit(-1); do j=1 to 2000; /*modified here*/ do i = 1 to 100; x = rand("Normal")*5+1; output; end; end; drop i; /*modified here*/ run; Proc sql; Create table Rand_means as Select j, mean(x) as A1 from rand group by j; quit; Please correct my understanding. Thanks. Merry Christmas, Naveen
... View more