LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (July 1996, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 3 Jul 1996 12:47:14 GMT
Reply-To:   Nya Murray <nmurray@MISTRAL.CO.UK>
Sender:   "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:   Nya Murray <nmurray@MISTRAL.CO.UK>
Organization:   PC Analysis Services
Subject:   Re: question on replicating a dataset
In-Reply-To:   <01I6J6AH4VGEA0VKMW@JOHNSON.CORNELL.EDU>

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


Back to: Top of message | Previous page | Main SAS-L page