<?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: Automating SAS: halt code execution at a specified time in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Automating-SAS-halt-code-execution-at-a-specified-time/m-p/119172#M24545</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;function :&amp;nbsp; SLEEP() ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jun 2013 09:40:20 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2013-06-26T09:40:20Z</dc:date>
    <item>
      <title>Automating SAS: halt code execution at a specified time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Automating-SAS-halt-code-execution-at-a-specified-time/m-p/119171#M24544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's the most efficient way to stop executing a fairly involved program at a specified time?&amp;nbsp; For example if I have a program with several macros and data steps would I use a batch command to stop the code at 7am PST?&amp;nbsp; Or is there an easy way to use a time parameter within SAS that would apply to the entire program (E.g. DO UNTIL loop)?&amp;nbsp; &lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif; background-color: #ffffff;"&gt;Any help or advice would be greatly appreciated.&amp;nbsp; Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 09:30:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Automating-SAS-halt-code-execution-at-a-specified-time/m-p/119171#M24544</guid>
      <dc:creator>BillJones</dc:creator>
      <dc:date>2013-06-26T09:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Automating SAS: halt code execution at a specified time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Automating-SAS-halt-code-execution-at-a-specified-time/m-p/119172#M24545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;function :&amp;nbsp; SLEEP() ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 09:40:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Automating-SAS-halt-code-execution-at-a-specified-time/m-p/119172#M24545</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2013-06-26T09:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Automating SAS: halt code execution at a specified time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Automating-SAS-halt-code-execution-at-a-specified-time/m-p/119173#M24546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the job is scheduled, you can set the scheduler to kill the job if whatever time condition you choose is met.&lt;/P&gt;&lt;P&gt;Otherwise, both the options you mention are valid.&lt;/P&gt;&lt;P&gt;The batch job has the advantage that you can choose the exact kill time.&lt;/P&gt;&lt;P&gt;Doing it as part of the program means the program has to wait between steps to check, which means:&lt;/P&gt;&lt;P&gt;1) you cannot be certain when a check will be made&lt;/P&gt;&lt;P&gt;2) if a step doesn't complete (infinite loop, processing too slow, bug) the check will never take place.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 09:44:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Automating-SAS-halt-code-execution-at-a-specified-time/m-p/119173#M24546</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2013-06-26T09:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Automating SAS: halt code execution at a specified time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Automating-SAS-halt-code-execution-at-a-specified-time/m-p/119174#M24547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;KSharp and Chris:&amp;nbsp; Thanks for the suggestions.&amp;nbsp; I'll kill the job via batch command.&amp;nbsp; This seems to be the most efficient method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jul 2013 06:08:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Automating-SAS-halt-code-execution-at-a-specified-time/m-p/119174#M24547</guid>
      <dc:creator>BillJones</dc:creator>
      <dc:date>2013-07-04T06:08:48Z</dc:date>
    </item>
  </channel>
</rss>

