<?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: Pausing SAS stored server with a batch code in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Pausing-SAS-stored-server-with-a-batch-code/m-p/529776#M15498</link>
    <description>&lt;P&gt;Try PROC IOMOPERATE. &amp;nbsp;See statements for QUIESCE and PAUSE.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jan 2019 17:47:47 GMT</pubDate>
    <dc:creator>sasdrs2</dc:creator>
    <dc:date>2019-01-24T17:47:47Z</dc:date>
    <item>
      <title>Pausing SAS stored server with a batch code</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Pausing-SAS-stored-server-with-a-batch-code/m-p/527075#M15425</link>
      <description>&lt;P&gt;Hello ALL&lt;/P&gt;&lt;P&gt;I was wondering if we cound proc metaoperate or some other procedure to pause SAS stored process server and resume it after some time?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 20:04:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Pausing-SAS-stored-server-with-a-batch-code/m-p/527075#M15425</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2019-01-14T20:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Pausing SAS stored server with a batch code</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Pausing-SAS-stored-server-with-a-batch-code/m-p/527665#M15443</link>
      <description>&lt;P&gt;Signals on Linux and UNIX can be used to manage process execution. You could pause all&amp;nbsp;execution of code&amp;nbsp;in SAS Stored Processes by finding the process ID's of&amp;nbsp;the Stored Process servers&amp;nbsp;then sending them SIGSTOP to pause their execution. Once you want them executing again sending it a SIGCONT will get them running again.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 09:31:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Pausing-SAS-stored-server-with-a-batch-code/m-p/527665#M15443</guid>
      <dc:creator>SimonDawson</dc:creator>
      <dc:date>2019-01-16T09:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Pausing SAS stored server with a batch code</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Pausing-SAS-stored-server-with-a-batch-code/m-p/528632#M15471</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;I am working on a windows environment.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 20 Jan 2019 18:03:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Pausing-SAS-stored-server-with-a-batch-code/m-p/528632#M15471</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2019-01-20T18:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Pausing SAS stored server with a batch code</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Pausing-SAS-stored-server-with-a-batch-code/m-p/528673#M15472</link>
      <description>A quick Google search revealed there isn’t any utility built into the operating system to do this on Windows but there are thread management calls in the Windows API.&lt;BR /&gt;&lt;A href="https://stackoverflow.com/questions/11010165/how-to-suspend-resume-a-process-in-windows" target="_blank"&gt;https://stackoverflow.com/questions/11010165/how-to-suspend-resume-a-process-in-windows&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I’ll give some thought to how you might do this without resorting to manipulating the operating system process table entry. There is probably a smarter way to do this that works across all platforms SAS runs on.</description>
      <pubDate>Mon, 21 Jan 2019 03:32:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Pausing-SAS-stored-server-with-a-batch-code/m-p/528673#M15472</guid>
      <dc:creator>SimonDawson</dc:creator>
      <dc:date>2019-01-21T03:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Pausing SAS stored server with a batch code</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Pausing-SAS-stored-server-with-a-batch-code/m-p/528697#M15477</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/131732"&gt;@Sajid01&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wonder what is your purpose or requirement, for "pausing" just the SAS Stored Process Server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could, of course, with some code, identify the sas.exe processes that are being launched as Stored Processes. This it not very complicated, just identifying the path used in those executions (including (StoredProcess string), and you will never have more than the size of your pool for the SAS Stored Process Server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A different story is the "pausing" part... I think it is perfectly possible, but not as a "pause" state but as a "non accessible" state.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could create a SAS code, with some IOM code, for denying Read Metadata to SASUSERS (and to SAS Trusted user and SAS General Services, if you will), while ensuring full access to the SAS Administrators (to ensure you won't corrupt the access to the SAS Stored Process). In this way, nobody can launch Stored Processes anymore, not even system services (just SAS Admins).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You would need, of course, another code to revert this status back to original state.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An alternative to above, much easier perhaps, is to make export original state of STP server, then&amp;nbsp; change of permissions manually when nobody access the STP server, then export SAS Package of the STP server definition. With those 2 packages, you can create a one-line code to import the package when you want to enable, or disable the STP server.&lt;/P&gt;
&lt;P&gt;Look for the utilities in&amp;nbsp;SASPlatformObjectFramework\9.4\ExportPackage.exe and&amp;nbsp;SASPlatformObjectFramework\9.4\ImportPackage.exe&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With all of this, the procedure could be such as:&lt;/P&gt;
&lt;P&gt;- disable STP server (with IOM or just Export/Import package codes)&lt;/P&gt;
&lt;P&gt;- kill remaining SAS STP processes&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- when you are ready, enable back the STP server&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is it simple enough? I hope it might help you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Juan&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jan 2019 08:15:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Pausing-SAS-stored-server-with-a-batch-code/m-p/528697#M15477</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2019-01-21T08:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Pausing SAS stored server with a batch code</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Pausing-SAS-stored-server-with-a-batch-code/m-p/529776#M15498</link>
      <description>&lt;P&gt;Try PROC IOMOPERATE. &amp;nbsp;See statements for QUIESCE and PAUSE.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 17:47:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Pausing-SAS-stored-server-with-a-batch-code/m-p/529776#M15498</guid>
      <dc:creator>sasdrs2</dc:creator>
      <dc:date>2019-01-24T17:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Pausing SAS stored server with a batch code</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Pausing-SAS-stored-server-with-a-batch-code/m-p/531260#M15525</link>
      <description>&lt;P&gt;Thanks for the information&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jan 2019 05:20:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Pausing-SAS-stored-server-with-a-batch-code/m-p/531260#M15525</guid>
      <dc:creator>sureshprabhu153</dc:creator>
      <dc:date>2019-01-30T05:20:30Z</dc:date>
    </item>
  </channel>
</rss>

