sas_stop
Stops a SAS run from the SQL Editor: cancels waiting or running Viya jobs while keeping the SAS session active, then returns status and log via sas_run_status.
Instructions
Stop a SAS run from the SQL Editor: a waiting run doesn't start; a running one is cancelled on Viya (Compute: the job's state set to canceled; CAS: the session's running action cancelled). The SAS session keeps running. The run then ends "stopped" with the log so far (sas_run_status).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"run_id": "<run_id>"
},
"name": "sas_stop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_id | Yes |