LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (April 2003, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 14 Apr 2003 09:39:43 -0700
Reply-To:   Dale McLerran <stringplayer_2@YAHOO.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Dale McLerran <stringplayer_2@YAHOO.COM>
Subject:   Re: Proc Surveyselect and Minimal Cell Sizes - Was RE: Proc Sort Rand om
Comments:   To: "Gerstle, John" <yzg9@CDC.GOV>
In-Reply-To:   <8726523B5547D711A0D500508B6686B25725C5@MCDC-ATL-43>
Content-Type:   text/plain; charset=us-ascii

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


Back to: Top of message | Previous page | Main SAS-L page