- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am looking for a way to execute a viya job from outside, to include it in existing processed with dependencies outside the sas environment.
I am looking for something like a shellscript, that gets the Job-URI or the path as a command and then executes this.
The script also has to return the correnct returncodes - 8 if the job ended with error, 4 if the job ended with warnings and 0 if the job ended successful.
Any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
https://developer.sas.com/apis/rest/Compute/#job-execution
Greg Wootton | Principal Systems Technical Support Engineer
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
yeah, we were able to execute a job via sas-admin job webapp execute. But the thing is the authentication, without writing down username or password in any files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi @DanielKaiser,
You have multiple authentication options with SAS Viya. You can register a client (app) and generate an access token. With this token, you can securely make the API calls @gwootton mentioned. Refer to Authentication to SAS Viya: a couple of approaches for detailed steps. There are also multiple resources here within the Community dealing with Job Execution and authentication.
Join us for SAS Community Trivia
SAS Bowl L, PROC HTTP
Wednesday, February 19, 2024, at 10:00 a.m. ET | #SASBowl