|
On Sun, 30 Jun 1996 20:18:13 -0500, Niren wrote:
>____________________
>
>Hi
>
>Hope someone can help me out with this. How does one replicate datasets?
>i.e. if i have a dataset called x and i want to create a dataset called
>y which has twice the number of observations in x (i.e. one x stacked
>over the other). If i need to do this stacking sevearal times, say
>create one dataset y with 100 replications of x, is there an easy way to
>do this?
>
>Thanks
>Sirohi
>
data out ;
set in;
if _n_ <=100 then do j=1 to nobs;
set in nobs=nobs point=j;
output;
end;
run;
Nya
|