<?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: Stopping a running scheduled job in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Stopping-a-running-scheduled-job/m-p/591880#M17305</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13516"&gt;@Nigel_Pain&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interesting ask here.. since users do not have access to the server, one way to do it could be using code.&amp;nbsp;&lt;A href="https://blogs.sas.com/content/sasdummy/2016/02/15/using-proc-iomoperate/" target="_self"&gt;This blog post&lt;/A&gt;&amp;nbsp;could help with some examples for this task.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 26 Sep 2019 14:48:07 GMT</pubDate>
    <dc:creator>AnandVyas</dc:creator>
    <dc:date>2019-09-26T14:48:07Z</dc:date>
    <item>
      <title>Stopping a running scheduled job</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Stopping-a-running-scheduled-job/m-p/591818#M17302</link>
      <description>&lt;P&gt;SAS 9.4M5&lt;/P&gt;
&lt;P&gt;Windows 2012R2 servers&lt;/P&gt;
&lt;P&gt;(Windows 10 pro clients with EG 7.15 and SAS Management Console 9.4M5)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've got a couple of users who I've recently set up to be able to schedule jobs via the SASMC Schedule Manager plugin and the Windows Task Scheduler. This all seems to work fine. However, one of them contacted me recently to say that a scheduled job was running and not completing, so he wanted to stop it. I was able to do that on the server by killing the process. But is there a way in which users can stop jobs which are running? They don't have direct login access to the server (eg. using RDP) so can't do what I did.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 11:19:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Stopping-a-running-scheduled-job/m-p/591818#M17302</guid>
      <dc:creator>Nigel_Pain</dc:creator>
      <dc:date>2019-09-26T11:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping a running scheduled job</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Stopping-a-running-scheduled-job/m-p/591880#M17305</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13516"&gt;@Nigel_Pain&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interesting ask here.. since users do not have access to the server, one way to do it could be using code.&amp;nbsp;&lt;A href="https://blogs.sas.com/content/sasdummy/2016/02/15/using-proc-iomoperate/" target="_self"&gt;This blog post&lt;/A&gt;&amp;nbsp;could help with some examples for this task.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 14:48:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Stopping-a-running-scheduled-job/m-p/591880#M17305</guid>
      <dc:creator>AnandVyas</dc:creator>
      <dc:date>2019-09-26T14:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping a running scheduled job</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Stopping-a-running-scheduled-job/m-p/592713#M17337</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/52993"&gt;@AnandVyas&lt;/a&gt;&amp;nbsp;, I'll have to have a play with that. Although I'm not sure whether it'll work because this isn't sessions running through a specific port (in which case I may not be able to specify them with PROC IOMOPERATE), but a Windows Scheduled task which is configured from the SAS Job Scheduler and the SAS Data Step Batch Server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 15:09:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Stopping-a-running-scheduled-job/m-p/592713#M17337</guid>
      <dc:creator>Nigel_Pain</dc:creator>
      <dc:date>2019-09-30T15:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping a running scheduled job</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Stopping-a-running-scheduled-job/m-p/592892#M17348</link>
      <description>&lt;P&gt;Even the schedule jobs would execute by spawning a SAS Session, so I believe it would be captured in the code I have share earlier.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 02:26:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Stopping-a-running-scheduled-job/m-p/592892#M17348</guid>
      <dc:creator>AnandVyas</dc:creator>
      <dc:date>2019-10-01T02:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping a running scheduled job</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Stopping-a-running-scheduled-job/m-p/592988#M17350</link>
      <description>&lt;P&gt;I just tested this using a test job which ran for 30 minutes. The IOMOPERATE program didn't show it. I think this is because it isn't actually spawned as such&amp;nbsp;(ie. run via a spawner). It uses the operating system scheduler to run a .vbs script, which runs a batch&amp;nbsp;SAS instance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That was a potentially useful piece of code courtesy of Mr&amp;nbsp;Hemedinger though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 11:16:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Stopping-a-running-scheduled-job/m-p/592988#M17350</guid>
      <dc:creator>Nigel_Pain</dc:creator>
      <dc:date>2019-10-01T11:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping a running scheduled job</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Stopping-a-running-scheduled-job/m-p/593274#M17362</link>
      <description>The spawner will not know about this process. For this problem you are trying to solve it will not work. If I think of a solution I'll pop back in here but nothing simple is coming to mind.</description>
      <pubDate>Wed, 02 Oct 2019 09:33:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Stopping-a-running-scheduled-job/m-p/593274#M17362</guid>
      <dc:creator>SimonDawson</dc:creator>
      <dc:date>2019-10-02T09:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping a running scheduled job</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Stopping-a-running-scheduled-job/m-p/593276#M17363</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11650"&gt;@SimonDawson&lt;/a&gt;, thanks for this. I'd got pretty much the same idea via the comments in Chris Hemedinger's blog shared by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/52993"&gt;@AnandVyas&lt;/a&gt;. Basically, if users were able to use tasklist and taskkill commands with the /s option&amp;nbsp;from their workstations it might have been possible. But cmd.exe and Powershell are disabled for ordinary users on our workstations. &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.sas.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 09:54:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Stopping-a-running-scheduled-job/m-p/593276#M17363</guid>
      <dc:creator>Nigel_Pain</dc:creator>
      <dc:date>2019-10-02T09:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping a running scheduled job</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Stopping-a-running-scheduled-job/m-p/593723#M17386</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13516"&gt;@Nigel_Pain&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On Tuesday I'll be presenting a &lt;A href="https://communities.sas.com/t5/Administration-and-Deployment/SUGA-webinar-on-October-8-ESM-tool-for-SAS/m-p/586071" target="_self"&gt;SUGA webinar&lt;/A&gt;&amp;nbsp;showing our Enterprise Session Monitor for SAS. The functionality that lets users manage their own workloads, including batch jobs, has been there for a while - have a look&amp;nbsp;&lt;A href="http://boemskats.com/esm/" target="_self"&gt;here,&lt;/A&gt;&amp;nbsp;around 3mins 30sec into the first video (the one titled What is ESM).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or join the webinar Tuesday - those videos are a few years old now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nik&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 14:01:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Stopping-a-running-scheduled-job/m-p/593723#M17386</guid>
      <dc:creator>boemskats</dc:creator>
      <dc:date>2019-10-03T14:01:17Z</dc:date>
    </item>
  </channel>
</rss>

