sassoftware / pyviyatools

Python command-line tools that call the SAS Viya REST APIs - for SAS administrators.
Apache License 2.0
39 stars 31 forks source link

Job execution does not return correct returncode #167

Closed Bankaifan closed 1 year ago

Bankaifan commented 1 year ago

We are executing jobs using the jobexecution-ID and experiencing the issue, that the sas-admin command always returns returncode 0, even if the job fails.

We have tried setting SYSCC and SYSRC actively to our expected RC, but are still getting 0.

How do we have to exit the SAS-Jobs to get an RC from the cli that is not 0?

We are using SAS Viya 3.5 and execute the sas-jobs with the command sas-admin job webapp execute --query-string "_job=/jobDefinitions/definitions/[ID]"

We also tried using the jobs path, but that didn't work.

gerrynelson63 commented 1 year ago

I don't know the answer to this sorry. Since this is an issue with sas-admin cli you might contact SAS Technical support.