Sankhla Shakti <shaktisankhla@YAHOO.COM> wrote:
> I have a database of more than 5000 observations. From
> this I want to pick a random sample of 200
> observations. I also want to fulfill a condition that
> say 150 observations are type A of variable X and rest
> are type B of variable X. Please guide.
You have already received code to do this. But, if you have
version 8 and the SAS/STAT module, you can achieve this easier
using PROC SURVEYSELECT .
David Cassell, CSC
Senior computing specialist