<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: change random seed in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/change-random-seed/m-p/52658#M14501</link>
    <description>Hello sli.&lt;BR /&gt;
&lt;BR /&gt;
Anything wrong about not specifying the SEED option and let SAS use the default which is the time of day of the system's clock?&lt;BR /&gt;
&lt;BR /&gt;
Cheers from Portugal.&lt;BR /&gt;
&lt;BR /&gt;
Daniel Santos @ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;;&lt;BR /&gt;
&lt;BR /&gt;
run;</description>
    <pubDate>Thu, 09 Jul 2009 14:44:44 GMT</pubDate>
    <dc:creator>DanielSantos</dc:creator>
    <dc:date>2009-07-09T14:44:44Z</dc:date>
    <item>
      <title>change random seed</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/change-random-seed/m-p/52657#M14500</link>
      <description>Hello,&lt;BR /&gt;
&lt;BR /&gt;
I have a question about changing random seed for every round in the loop.&lt;BR /&gt;
&lt;BR /&gt;
Say I have a loop:&lt;BR /&gt;
&lt;BR /&gt;
do i=1 to 1000;&lt;BR /&gt;
&lt;BR /&gt;
...then in one of the following steps I need to use proc surveyselect which requires me to specify a random seed (e.g., seed=123).&lt;BR /&gt;
&lt;BR /&gt;
because I need to get different random samples, I want different seed for different i (e.g.,  seed=123 for i=1, seed=124 for i=2, seed=125 for i=3...).&lt;BR /&gt;
&lt;BR /&gt;
It seems to me a positive integer should follow the seed= statement. Is there anyway to achieve the above mentioned procedure?&lt;BR /&gt;
&lt;BR /&gt;
Thank you very much for your help!&lt;BR /&gt;
&lt;BR /&gt;
sliu</description>
      <pubDate>Thu, 09 Jul 2009 02:12:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/change-random-seed/m-p/52657#M14500</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-07-09T02:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: change random seed</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/change-random-seed/m-p/52658#M14501</link>
      <description>Hello sli.&lt;BR /&gt;
&lt;BR /&gt;
Anything wrong about not specifying the SEED option and let SAS use the default which is the time of day of the system's clock?&lt;BR /&gt;
&lt;BR /&gt;
Cheers from Portugal.&lt;BR /&gt;
&lt;BR /&gt;
Daniel Santos @ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;;&lt;BR /&gt;
&lt;BR /&gt;
run;</description>
      <pubDate>Thu, 09 Jul 2009 14:44:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/change-random-seed/m-p/52658#M14501</guid>
      <dc:creator>DanielSantos</dc:creator>
      <dc:date>2009-07-09T14:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: change random seed</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/change-random-seed/m-p/52659#M14502</link>
      <description>Thank you, Daniel!&lt;BR /&gt;
That's fine for my current purpose. But I would like it to be able to replicate in the future.</description>
      <pubDate>Thu, 09 Jul 2009 23:35:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/change-random-seed/m-p/52659#M14502</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-07-09T23:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: change random seed</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/change-random-seed/m-p/52660#M14503</link>
      <description>OK.&lt;BR /&gt;
&lt;BR /&gt;
Then you should take a look on macro variables.&lt;BR /&gt;
&lt;BR /&gt;
Check the online documentation:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/a002293823.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/a002293823.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Easily accomplished with a macro variable.&lt;BR /&gt;
&lt;BR /&gt;
Cheers from Portugal.&lt;BR /&gt;
&lt;BR /&gt;
Daniel Santos @ &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;.</description>
      <pubDate>Fri, 10 Jul 2009 07:46:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/change-random-seed/m-p/52660#M14503</guid>
      <dc:creator>DanielSantos</dc:creator>
      <dc:date>2009-07-10T07:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: change random seed</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/change-random-seed/m-p/52661#M14504</link>
      <description>I will! Thanks!</description>
      <pubDate>Fri, 10 Jul 2009 08:32:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/change-random-seed/m-p/52661#M14504</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-07-10T08:32:52Z</dc:date>
    </item>
  </channel>
</rss>

