Terminating a SAS Process

You can terminate a SAS process using several methods. A SAS server is a specific type of SAS process.
Note: Before you terminate SAS using one of the following methods, you should try to end the process using one of the methods described in Ending Your SAS Session or in the documentation for the SAS server.
If the SAS process was instantiated as a Windows service, then you can terminate the process using one of the following methods:
  • at the command prompt, submit one of the following commands:
    • net stop <service name> where service name is the name of the Windows service.
    • sc <server> stop <service name> where server is in the form “\\ServerName” and service name is the name of the Windows service.
  • in the Microsoft Management Console Services snap-in, select the service that you want to terminate and select Stop.
To terminate a SAS process, use one of the following methods:
  • At a command prompt submit
    taskkill/pid <process ID>
    where process ID is the SAS process ID. You can get this process ID from the output of the tasklist command.
  • in the Windows Task Manager, select the process and click End Process.
CAUTION:
Using the taskkill command or the Windows Task Manager to terminate a SAS process might result in data loss or data corruption.