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