<?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: stop processing code if a certain condition is met in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/stop-processing-code-if-a-certain-condition-is-met/m-p/581384#M13669</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/275095"&gt;@meckarthik&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi There,&lt;/P&gt;
&lt;P&gt;I've created some codes which run automatically when run command is pressed, but i need to be run only when certain conditions are met, otherwise should stop and close the SAS program (if possible).&lt;/P&gt;
&lt;P&gt;eg. after 4 pm on Friday&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Such tasks are handled by schedulers. Depending on the code you have, it could be possible to add some checks and terminate the sas process, but i can't recommend re-inventing the wheel.&lt;/P&gt;</description>
    <pubDate>Thu, 15 Aug 2019 12:39:59 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2019-08-15T12:39:59Z</dc:date>
    <item>
      <title>stop processing code if a certain condition is met</title>
      <link>https://communities.sas.com/t5/New-SAS-User/stop-processing-code-if-a-certain-condition-is-met/m-p/581374#M13666</link>
      <description>&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;I've created some codes which run automatically when run command is pressed, but i need to be run only when certain conditions are met, otherwise should stop and close the SAS program (if possible).&lt;/P&gt;&lt;P&gt;eg. after 4 pm on Friday&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 12:08:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/stop-processing-code-if-a-certain-condition-is-met/m-p/581374#M13666</guid>
      <dc:creator>meckarthik</dc:creator>
      <dc:date>2019-08-15T12:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: stop processing code if a certain condition is met</title>
      <link>https://communities.sas.com/t5/New-SAS-User/stop-processing-code-if-a-certain-condition-is-met/m-p/581384#M13669</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/275095"&gt;@meckarthik&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi There,&lt;/P&gt;
&lt;P&gt;I've created some codes which run automatically when run command is pressed, but i need to be run only when certain conditions are met, otherwise should stop and close the SAS program (if possible).&lt;/P&gt;
&lt;P&gt;eg. after 4 pm on Friday&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Such tasks are handled by schedulers. Depending on the code you have, it could be possible to add some checks and terminate the sas process, but i can't recommend re-inventing the wheel.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 12:39:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/stop-processing-code-if-a-certain-condition-is-met/m-p/581384#M13669</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-08-15T12:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: stop processing code if a certain condition is met</title>
      <link>https://communities.sas.com/t5/New-SAS-User/stop-processing-code-if-a-certain-condition-is-met/m-p/581388#M13672</link>
      <description>&lt;P&gt;Here is a possibility:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
    if weekday(today())=6 and timepart(datetime())&amp;gt;'16:00't then endsas;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 13:13:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/stop-processing-code-if-a-certain-condition-is-met/m-p/581388#M13672</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-08-15T13:13:42Z</dc:date>
    </item>
  </channel>
</rss>

