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 (May 2008, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 29 May 2008 00:08:17 -0700
Reply-To:   RolandRB <rolandberry@HOTMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   RolandRB <rolandberry@HOTMAIL.COM>
Organization:   http://groups.google.com
Subject:   Re: dataset generation
Comments:   To: sas-l@uga.edu
Content-Type:   text/plain; charset=ISO-8859-1

On May 29, 8:46 am, "srinivas_sai via MathKB.com" <u42976@uwe> wrote: > Hi, > I have a dataset with 20 obs. and i would like to generate 20000 datapoint > out of the existing dataset. > how can i do this. i am looking out for a sas code. > Please help. > > thanks, > S.S.Pradeep > > -- > Message posted via MathKB.comhttp://www.mathkb.com/Uwe/Forums.aspx/sas/200805/1

You can use direct access for your dataset and loop through it. See the point= option below. The following comes from the online documentation.

Example 9: Reading a Subset by Using Direct Access These statements select a subset of 50 observations from the data set DRUGTEST by using the POINT= option to access observations directly by number:

data sample; do obsnum=1 to 100 by 2; set drugtest point=obsnum; if _error_ then abort; output; end; stop; run;


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