Date: Wed, 8 Nov 2006 14:40:45 -0600
Reply-To: Yu Zhang <zhangyu05@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Yu Zhang <zhangyu05@GMAIL.COM>
Subject: Re: what's wrong with my codes? please help!
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
It seems to me that your code is perfectly O.K. I couldn't replicate your
problem with ur code.
do i = 1 to 20;
row_to_read = int(uniform(int(time()))*20+1);
set sashelp.class point=row_to_read;
On 11/8/06, Xuhong <email@example.com> wrote:
> 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;