<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Start a SAS Viya Job from outside in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Start-a-SAS-Viya-Job-from-outside/m-p/864591#M26233</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;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.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am looking for something like a shellscript, that gets the Job-URI or the path as a command and then executes this.&amp;nbsp;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;/P&gt;</description>
    <pubDate>Thu, 16 Mar 2023 15:58:15 GMT</pubDate>
    <dc:creator>DanielKaiser</dc:creator>
    <dc:date>2023-03-16T15:58:15Z</dc:date>
    <item>
      <title>Start a SAS Viya Job from outside</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Start-a-SAS-Viya-Job-from-outside/m-p/864591#M26233</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;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.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am looking for something like a shellscript, that gets the Job-URI or the path as a command and then executes this.&amp;nbsp;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 15:58:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Start-a-SAS-Viya-Job-from-outside/m-p/864591#M26233</guid>
      <dc:creator>DanielKaiser</dc:creator>
      <dc:date>2023-03-16T15:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Start a SAS Viya Job from outside</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Start-a-SAS-Viya-Job-from-outside/m-p/864975#M26262</link>
      <description>I think you'd be able to do the things you need through the Viya REST APIs, so it would just be a matter of writing code to authenticate, submit a job, check its status periodically and then exit when the job completes with the exit codes you mentioned.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developer.sas.com/apis/rest/Compute/#job-execution" target="_blank"&gt;https://developer.sas.com/apis/rest/Compute/#job-execution&lt;/A&gt;</description>
      <pubDate>Fri, 17 Mar 2023 19:50:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Start-a-SAS-Viya-Job-from-outside/m-p/864975#M26262</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2023-03-17T19:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Start a SAS Viya Job from outside</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Start-a-SAS-Viya-Job-from-outside/m-p/865048#M26264</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;yeah, we were able to execute a job via&lt;SPAN&gt;&lt;SPAN class="ui-provider vb b c d e f g h i j k l m n o p q r s t u v w x y z ab ac ae af ag ah ai aj ak"&gt;&amp;nbsp;sas-admin job webapp execute. But the thing is the authentication, without writing down username or password in any files.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Mar 2023 12:37:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Start-a-SAS-Viya-Job-from-outside/m-p/865048#M26264</guid>
      <dc:creator>DanielKaiser</dc:creator>
      <dc:date>2023-03-18T12:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Start a SAS Viya Job from outside</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Start-a-SAS-Viya-Job-from-outside/m-p/865171#M26269</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/21072"&gt;@DanielKaiser&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;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&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/78975"&gt;@gwootton&lt;/a&gt;&amp;nbsp;mentioned. Refer to&amp;nbsp;&lt;A href="https://blogs.sas.com/content/sgf/2023/02/07/authentication-to-sas-viya/" target="_self"&gt;Authentication to SAS Viya: a couple of approaches&lt;/A&gt; for detailed steps. There are also &lt;A href="https://communities.sas.com/t5/forums/searchpage/tab/message?advanced=false&amp;amp;allow_punctuation=false&amp;amp;filter=includeTkbs,location&amp;amp;include_tkbs=true&amp;amp;location=tkb-board:library&amp;amp;q=job%20execution" target="_self"&gt;multiple resources&lt;/A&gt; here within the Community dealing with Job Execution and authentication.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2023 11:13:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Start-a-SAS-Viya-Job-from-outside/m-p/865171#M26269</guid>
      <dc:creator>joeFurbee</dc:creator>
      <dc:date>2023-03-20T11:13:24Z</dc:date>
    </item>
  </channel>
</rss>

