<?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: Need help / SAS X command to restart 2nd SAS Object Spawner in a SAS ST in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Need-help-SAS-X-command-to-restart-2nd-SAS-Object-Spawner-in-a/m-p/71423#M3392</link>
    <description>Hi, &lt;BR /&gt;
When you run a stored process, your code is executing on the Stored Process server ot the Workspace server. Have you checked with your SAS admin to verify the correct path-- the SERVER path -- on those machines?? Are those servers Windows machines? Do you know that the c:\temp directory exists on the server that you are using?? You might want to check with Tech Support, because I believe that your script or .BAT file will also have to be on the server to be executed. Generally, speaking, the Stored Process server and the Workspace server do not have visibility of a directory on your local machine.&lt;BR /&gt;
&lt;BR /&gt;
Cynthia</description>
    <pubDate>Sun, 12 Sep 2010 15:16:30 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2010-09-12T15:16:30Z</dc:date>
    <item>
      <title>Need help / SAS X command to restart 2nd SAS Object Spawner in a SAS STP</title>
      <link>https://communities.sas.com/t5/Developers/Need-help-SAS-X-command-to-restart-2nd-SAS-Object-Spawner-in-a/m-p/71422#M3391</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
I am trying to restart a SAS Object Spawner via a SAS Stored Process. If I test this code in Base SAS it works ok but when I use it in a Stored Process and run it in SAS Enterprise Guide or the SAS Webapp it does not error but does not restart the Object Spawner.&lt;BR /&gt;
&lt;BR /&gt;
The .bat file contains this&lt;BR /&gt;
&lt;BR /&gt;
net stop "SAS Object Spawer"&lt;BR /&gt;
net start "SAS Object Spawner"&lt;BR /&gt;
&lt;BR /&gt;
This is a different Spawner and not used by the stored process itself.&lt;BR /&gt;
&lt;BR /&gt;
I have enabled the x command which works ok as I can unzip a file on&lt;BR /&gt;
the O/S (Windows 2003) from a SAS STP.&lt;BR /&gt;
&lt;BR /&gt;
%let live=Yes;&lt;BR /&gt;
%if &amp;amp;live=Yes %THEN %DO;&lt;BR /&gt;
* Restart the SAS Object Spawner;&lt;BR /&gt;
options noxwait xmin;&lt;BR /&gt;
data _null_;&lt;BR /&gt;
do;&lt;BR /&gt;
call system('"cd c:\temp"');&lt;BR /&gt;
call system('"RestartOB.bat"');&lt;BR /&gt;
end;&lt;BR /&gt;
run;&lt;BR /&gt;
%end;&lt;BR /&gt;
&lt;BR /&gt;
Any ideas?&lt;BR /&gt;
&lt;BR /&gt;
Thanks&lt;BR /&gt;
&lt;BR /&gt;
Lee</description>
      <pubDate>Sun, 12 Sep 2010 12:54:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Need-help-SAS-X-command-to-restart-2nd-SAS-Object-Spawner-in-a/m-p/71422#M3391</guid>
      <dc:creator>LeeJenson</dc:creator>
      <dc:date>2010-09-12T12:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need help / SAS X command to restart 2nd SAS Object Spawner in a SAS ST</title>
      <link>https://communities.sas.com/t5/Developers/Need-help-SAS-X-command-to-restart-2nd-SAS-Object-Spawner-in-a/m-p/71423#M3392</link>
      <description>Hi, &lt;BR /&gt;
When you run a stored process, your code is executing on the Stored Process server ot the Workspace server. Have you checked with your SAS admin to verify the correct path-- the SERVER path -- on those machines?? Are those servers Windows machines? Do you know that the c:\temp directory exists on the server that you are using?? You might want to check with Tech Support, because I believe that your script or .BAT file will also have to be on the server to be executed. Generally, speaking, the Stored Process server and the Workspace server do not have visibility of a directory on your local machine.&lt;BR /&gt;
&lt;BR /&gt;
Cynthia</description>
      <pubDate>Sun, 12 Sep 2010 15:16:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Need-help-SAS-X-command-to-restart-2nd-SAS-Object-Spawner-in-a/m-p/71423#M3392</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-09-12T15:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need help / SAS X command to restart 2nd SAS Object Spawner in a SAS ST</title>
      <link>https://communities.sas.com/t5/Developers/Need-help-SAS-X-command-to-restart-2nd-SAS-Object-Spawner-in-a/m-p/71424#M3393</link>
      <description>Other things to check.&lt;BR /&gt;
&lt;BR /&gt;
what user Id is being used, does it have the correct permission to start/stop a service.&lt;BR /&gt;
&lt;BR /&gt;
Check your event log, are there any msg there?&lt;BR /&gt;
&lt;BR /&gt;
Cheers&lt;BR /&gt;
&lt;BR /&gt;
Barry</description>
      <pubDate>Sun, 12 Sep 2010 20:56:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Need-help-SAS-X-command-to-restart-2nd-SAS-Object-Spawner-in-a/m-p/71424#M3393</guid>
      <dc:creator>twocanbazza</dc:creator>
      <dc:date>2010-09-12T20:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need help / SAS X command to restart 2nd SAS Object Spawner in a SAS ST</title>
      <link>https://communities.sas.com/t5/Developers/Need-help-SAS-X-command-to-restart-2nd-SAS-Object-Spawner-in-a/m-p/71425#M3394</link>
      <description>Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
- I am executing via the STP as Iam running a Stored Process. &lt;BR /&gt;
- The path is correct because the process works in Base.&lt;BR /&gt;
- All this sesting I am doing on the SAS Compute Server where the spawners are, no clients.  &lt;BR /&gt;
Thanks&lt;BR /&gt;
Lee</description>
      <pubDate>Mon, 13 Sep 2010 08:30:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Need-help-SAS-X-command-to-restart-2nd-SAS-Object-Spawner-in-a/m-p/71425#M3394</guid>
      <dc:creator>LeeJenson</dc:creator>
      <dc:date>2010-09-13T08:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Need help / SAS X command to restart 2nd SAS Object Spawner in a SAS ST</title>
      <link>https://communities.sas.com/t5/Developers/Need-help-SAS-X-command-to-restart-2nd-SAS-Object-Spawner-in-a/m-p/71426#M3395</link>
      <description>Barry, &lt;BR /&gt;
&lt;BR /&gt;
The user I am using stops the service ok during my Base testing.&lt;BR /&gt;
&lt;BR /&gt;
I will dive in the event log and check other permissions eg: sassrv,&lt;BR /&gt;
&lt;BR /&gt;
Thanks &lt;BR /&gt;
&lt;BR /&gt;
Lee</description>
      <pubDate>Mon, 13 Sep 2010 08:34:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Need-help-SAS-X-command-to-restart-2nd-SAS-Object-Spawner-in-a/m-p/71426#M3395</guid>
      <dc:creator>LeeJenson</dc:creator>
      <dc:date>2010-09-13T08:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need help / SAS X command to restart 2nd SAS Object Spawner in a SAS ST</title>
      <link>https://communities.sas.com/t5/Developers/Need-help-SAS-X-command-to-restart-2nd-SAS-Object-Spawner-in-a/m-p/71427#M3396</link>
      <description>Hi &lt;BR /&gt;
&lt;BR /&gt;
I never got to the bottom of this and the need went away. So it is still a mystery. Will pick it back up another time. &lt;BR /&gt;
&lt;BR /&gt;
Lee</description>
      <pubDate>Thu, 18 Nov 2010 21:24:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Need-help-SAS-X-command-to-restart-2nd-SAS-Object-Spawner-in-a/m-p/71427#M3396</guid>
      <dc:creator>LeeJenson</dc:creator>
      <dc:date>2010-11-18T21:24:15Z</dc:date>
    </item>
  </channel>
</rss>

