Yes, I have read that post. I created the following test.ksh, but get the message sas-viya: 'submit-pgm' is not a sas-viya command. See 'sas-viya' --help'. upon execution of the korn shell script. Also, I see no evidence of the /home/abc123/test.sas being executed. I do not see a test.log or test.lst.
#!/bin/ksh cd /loc/of/cli ./sas-viya --profile ${SAS_CLI_PROFILE} batch jobs submit-pgm --pgm-path /home/abc123/test.sas --context default --watch-output --wait-output --wait-log-list --results-dir /home/abc
The contents of /home/abc123/test.sas are as follows:
proc options; run;
Raise a support ticket. https://support.sas.com/
Let use know what you find out.
The plugins are updated on a regular basis, so I suggest to do an update/install of all the plugins of the sas-viya CLI. You can do this like so:
sas-viya plugins install --repo SAS all
In case this does not work, you might have an older version of the sas-viya CLI. I recommend do download the latest version from here: https://support.sas.com/downloads/package.htm?pid=2512
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!