LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (November 2006, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 8 Nov 2006 12:25:28 -0800
Reply-To:     Xuhong <zhuxuhong2000@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Xuhong <zhuxuhong2000@GMAIL.COM>
Organization: http://groups.google.com
Subject:      what's wrong with my codes? please help!
Comments: To: sas-l@uga.edu
Content-Type: text/plain; charset="iso-8859-1"

Dear all, I have a database with 2000 obeservations and what I need is to random select 100 observations with replacement. But my codes could only generate one observation. Could you help me find out my mistakes in my codes below? Thanks very much!

data work.sample1; do i = 1 to 100; row_to_read = int(uniform(int(time()))*2000+1); set work.file point = row_to_read; output; end; stop; run;


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