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.
The .bat file contains this
net stop "SAS Object Spawer"
net start "SAS Object Spawner"
This is a different Spawner and not used by the stored process itself.
I have enabled the x command which works ok as I can unzip a file on
the O/S (Windows 2003) from a SAS STP.
%if &live=Yes %THEN %DO;
* Restart the SAS Object Spawner;
options noxwait xmin;
call system('"cd c:\temp"');
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.
- I am executing via the STP as Iam running a Stored Process.
- The path is correct because the process works in Base.
- All this sesting I am doing on the SAS Compute Server where the spawners are, no clients.