|
--- "Gerstle, John" <yzg9@CDC.GOV> wrote:
> The '123' is just that...a quickie seed. I'll probably use seed=0
> when I
> get this program finished.
>
Oh, bad idea to use seed=0. If you need to verify the process,
you can't! However, I have coded programs which employ seed=0
to initialize and document the starting seed. You can code
something like
data _null_;
seed=0;
call ranuni(seed,x);
call symput("seed", put(seed, 16.-L));
run;
options symbolgen;
proc surveyselect seed=&seed ...
run;
By creating macro variable SEED and employing the SYMBOLGEN
option, the seed value at execution of the SURVEYSELECT
procedure is written to the log file. You get the advantage
of not having to declare your seed before the process is
initiated with the ability to replicate the results at a later
date, if needed.
Dale
=====
---------------------------------------
Dale McLerran
Fred Hutchinson Cancer Research Center
mailto: dmclerra@fhcrc.org
Ph: (206) 667-2926
Fax: (206) 667-5977
---------------------------------------
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com
|