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!
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;
|