<?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 How to Interrupt/Stop a running thread with sleep() ?! in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-Interrupt-Stop-a-running-thread-with-sleep/m-p/919092#M362022</link>
    <description>&lt;P&gt;Runing a macro with sleep function, but need interrupt/stop in middle.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BUT did not see "the running man". How to stop/interrupt the thread?!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro doloopx(ctx);	
	%do i=1 %to &amp;amp;ctx.;
		%doloop(); // 

		data _x_;
		call sleep(60, 1);
		run;quit;
	%end;
%mend;

%doloopx(10);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 06 Mar 2024 12:37:01 GMT</pubDate>
    <dc:creator>hellohere</dc:creator>
    <dc:date>2024-03-06T12:37:01Z</dc:date>
    <item>
      <title>How to Interrupt/Stop a running thread with sleep() ?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Interrupt-Stop-a-running-thread-with-sleep/m-p/919092#M362022</link>
      <description>&lt;P&gt;Runing a macro with sleep function, but need interrupt/stop in middle.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BUT did not see "the running man". How to stop/interrupt the thread?!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro doloopx(ctx);	
	%do i=1 %to &amp;amp;ctx.;
		%doloop(); // 

		data _x_;
		call sleep(60, 1);
		run;quit;
	%end;
%mend;

%doloopx(10);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Mar 2024 12:37:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Interrupt-Stop-a-running-thread-with-sleep/m-p/919092#M362022</guid>
      <dc:creator>hellohere</dc:creator>
      <dc:date>2024-03-06T12:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to Interrupt/Stop a running thread with sleep() ?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Interrupt-Stop-a-running-thread-with-sleep/m-p/919099#M362026</link>
      <description>&lt;P&gt;What IDE are you using, Enterprise Guide or SAS Studio or something else?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I run it in PC SAS (Display Manager), I can interrupt it using the the Break button (!).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In Enterprise Guide, I can interrupt it with the Cancel button (red square)&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 13:16:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Interrupt-Stop-a-running-thread-with-sleep/m-p/919099#M362026</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2024-03-06T13:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to Interrupt/Stop a running thread with sleep() ?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Interrupt-Stop-a-running-thread-with-sleep/m-p/919101#M362027</link>
      <description>PC SAS. 

The "running man" and "break(!)" are not visible until the thread finishes...</description>
      <pubDate>Wed, 06 Mar 2024 13:21:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Interrupt-Stop-a-running-thread-with-sleep/m-p/919101#M362027</guid>
      <dc:creator>hellohere</dc:creator>
      <dc:date>2024-03-06T13:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to Interrupt/Stop a running thread with sleep() ?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Interrupt-Stop-a-running-thread-with-sleep/m-p/919103#M362028</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sasscreen.jpg" style="width: 708px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/94417iF4699C75CEC43A07/image-size/large?v=v2&amp;amp;px=999" role="button" title="sasscreen.jpg" alt="sasscreen.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 13:25:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Interrupt-Stop-a-running-thread-with-sleep/m-p/919103#M362028</guid>
      <dc:creator>hellohere</dc:creator>
      <dc:date>2024-03-06T13:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to Interrupt/Stop a running thread with sleep() ?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Interrupt-Stop-a-running-thread-with-sleep/m-p/919104#M362029</link>
      <description>&lt;P&gt;Looks like an old version.&amp;nbsp; Probably just the icon is missing.&amp;nbsp; Try CTRL-BREAK.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or look at how to add an icon.&amp;nbsp; &amp;nbsp;You should be able to right-click the bar with the icons and select customize to add an icon, and interrupt/break should be an option to add.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 13:31:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Interrupt-Stop-a-running-thread-with-sleep/m-p/919104#M362029</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2024-03-06T13:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to Interrupt/Stop a running thread with sleep() ?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Interrupt-Stop-a-running-thread-with-sleep/m-p/919105#M362030</link>
      <description>&lt;P&gt;Actually that menu bar you showed doesn't look like it should be the menu bar associated with a .sas program.&amp;nbsp; If you get to the point where you can see a running man, that is where you would want to add the interrupt icon.&amp;nbsp; Just curious what version of SAS are you using?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 13:33:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Interrupt-Stop-a-running-thread-with-sleep/m-p/919105#M362030</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2024-03-06T13:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to Interrupt/Stop a running thread with sleep() ?!</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Interrupt-Stop-a-running-thread-with-sleep/m-p/919109#M362031</link>
      <description>&lt;P&gt;Ye, you are right.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If nothing is done, the active window yields to "results", and the "running man" and "break" are gone.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If click .sas right after submit the code, the active window is still on .sas, the "running man" and "break" are still there.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can stop/interrupt.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 13:53:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Interrupt-Stop-a-running-thread-with-sleep/m-p/919109#M362031</guid>
      <dc:creator>hellohere</dc:creator>
      <dc:date>2024-03-06T13:53:40Z</dc:date>
    </item>
  </channel>
</rss>

