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

Request 4 validateviya.py: Run (custom) SAS Code or Jobs #158

Open Juan4SAS opened 1 year ago

Juan4SAS commented 1 year ago

Hello,

for now it is only possible to add certain unitary tests, the default for running SAS jobs/code is only the one that is hardcoded within the python script on itself, and if other code has to run, it forces to modify the pythin script, which is not a best practice and, in certain industries, not even allowed.

Would it be possible to add the possibility to run custom SAS code (from a separate file for example) or to submit SAS jobs to Compute and/or CAS?

Thank you in advance! Best regards, Juan

gerrynelson63 commented 1 year ago

@Juan4SAS , sorry for the delay in responding. We could add the capability to pass a different SAS program to validateviya. Let me know if that would be useful.

To submit programs to Viya in general we have the sas-viya batch command. For more information check out this post