<?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 Sleep Question in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Sleep-Question/m-p/102502#M28703</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to delay the start of the execution of a sas program by 10 minutes.&amp;nbsp;&amp;nbsp; I added this data _null_ step at the beginning of my sas code.&amp;nbsp; But the program starts right away.&amp;nbsp; How do I delay the execution of a program by a specified amont of time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sletp = sleep(60*10);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data aaa;&lt;/P&gt;&lt;P&gt;......... rest of the sas program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate any input you may have!&lt;/P&gt;&lt;P&gt;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Feb 2013 22:28:12 GMT</pubDate>
    <dc:creator>KevinC_</dc:creator>
    <dc:date>2013-02-07T22:28:12Z</dc:date>
    <item>
      <title>Sleep Question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Sleep-Question/m-p/102502#M28703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to delay the start of the execution of a sas program by 10 minutes.&amp;nbsp;&amp;nbsp; I added this data _null_ step at the beginning of my sas code.&amp;nbsp; But the program starts right away.&amp;nbsp; How do I delay the execution of a program by a specified amont of time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sletp = sleep(60*10);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data aaa;&lt;/P&gt;&lt;P&gt;......... rest of the sas program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate any input you may have!&lt;/P&gt;&lt;P&gt;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 22:28:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Sleep-Question/m-p/102502#M28703</guid>
      <dc:creator>KevinC_</dc:creator>
      <dc:date>2013-02-07T22:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sleep Question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Sleep-Question/m-p/102503#M28704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're on a unix server, the default unit is millisecond, not second.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 22:33:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Sleep-Question/m-p/102503#M28704</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2013-02-07T22:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Sleep Question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Sleep-Question/m-p/102504#M28705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you DBailey.&lt;/P&gt;&lt;P&gt;I changed the code to sleep(60*60*10) and it started right away too.&amp;nbsp; Isn't that 10 minutes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 22:45:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Sleep-Question/m-p/102504#M28705</guid>
      <dc:creator>KevinC_</dc:creator>
      <dc:date>2013-02-07T22:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sleep Question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Sleep-Question/m-p/102505#M28706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look for the CALL SLEEP function instead of trying to guess how long a loop takes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call sleep (600,1); /* 600 seconds*/&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 23:27:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Sleep-Question/m-p/102505#M28706</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-02-07T23:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sleep Question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Sleep-Question/m-p/102506#M28707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To repeat DBailey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The default unit for enviornments other than windows is millisecond ( .001 ), so your server is most likely not a windows machine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for 1 minute&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rc=sleep(60,1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H1 style="font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; color: #003399; font-size: 20px; margin-bottom: 8px; margin-top: -1em; background-color: #ffffff;"&gt;&lt;A name="a001418809" style="font-family: inherit;"&gt;SLEEP Function&lt;/A&gt;&lt;/H1&gt;&lt;P&gt;&lt;A class="active_link" href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a001418809.htm" title="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a001418809.htm"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a001418809.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call sleep(60,1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H1 style="font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; color: #003399; font-size: 20px; margin-bottom: 8px; background-color: #ffffff;"&gt;&lt;A name="a001462167" style="font-weight: normal; font-family: inherit; text-decoration: underline; color: #0066cc;"&gt;CALL SLEEP Routine: UNIX&lt;/A&gt;&lt;/H1&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/hostunx/61879/HTML/default/viewer.htm#a001462167.htm" title="http://support.sas.com/documentation/cdl/en/hostunx/61879/HTML/default/viewer.htm#a001462167.htm"&gt;http://support.sas.com/documentation/cdl/en/hostunx/61879/HTML/default/viewer.htm#a001462167.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 23:53:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Sleep-Question/m-p/102506#M28707</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2013-02-07T23:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Sleep Question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Sleep-Question/m-p/102507#M28708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not if you're on a unix machine...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10 minutes * 60 seconds / minute * 1000 miliseconds / second = 600000&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 00:40:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Sleep-Question/m-p/102507#M28708</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2013-02-08T00:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sleep Question</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Sleep-Question/m-p/102508#M28709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you everyone for the helpful information!&lt;/P&gt;&lt;P&gt;I decided to use the Call Sleep function and it worked beautifully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again for all your input &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2013 14:54:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Sleep-Question/m-p/102508#M28709</guid>
      <dc:creator>KevinC_</dc:creator>
      <dc:date>2013-02-08T14:54:22Z</dc:date>
    </item>
  </channel>
</rss>

