<?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 Viya Question About Collecting Job Status from Workload Orchestrator Programmatically in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Viya-Question-About-Collecting-Job-Status-from-Workload/m-p/981709#M6657</link>
    <description>&lt;P&gt;I have a question that I asked SAS directly and they pointed me to this message board.&amp;nbsp; Our team is migrating into SAS Viya and previously ran jobs on a grid service where the status of jobs could be pulled down with a macro and printed.&amp;nbsp; I'm trying to replicate this in the Viya environment.&amp;nbsp; I am using RSUBMIT blocks with SIGNON statements to batch submit programs and I can see these jobs within the workload orchestrator while it they are running:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JeffMeyers_0-1767886131385.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/112554i4B3A3EE664E64A41/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JeffMeyers_0-1767886131385.png" alt="JeffMeyers_0-1767886131385.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I was previously pointed to some code that works with proc http to pull information with an API I believe (I am not familiar with this type of extraction of information).&amp;nbsp; &lt;A href="https://urldefense.com/v3/__https:/communities.sas.com/t5/Administration-and-Deployment/How-to-retrieve-status-of-scheduled-jobs/td-p/784321__;!!ODpDvJZr5w!FmeC0pmxvqu4n3HoO3vO-kqodlDCSSlRwd20Mc7vPUK2dFJ-fXKMi6hNUPRfjCWwhGoMMmj6ZIJ0MUtN9JsBOhlsSxDxMw$" target="_blank"&gt;https://communities.sas.com/t5/Administration-and-Deployment/How-to-retrieve-status-of-scheduled-jobs/td-p/784321&lt;/A&gt;&amp;nbsp;I tried to modify it but it does not pull information about individual RSUBMIT sessions, only the overarching program running the RSUBMITS:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let baseurl=;/**Removed the URL due to company protocol**/
%macro getjobs();
    /* Initialize files */
    filename headout temp;
    filename resp temp;
    /* Call the jobExecution REST API using whatever filter you want to limit the results  */
    proc http oauth_bearer=sas_services url="&amp;amp;baseurl/jobExecution/jobs?start=0%nrstr(&amp;amp;limit)=20%nrstr(&amp;amp;filter)=ge(creationTimeStamp,%272025-12-18T05:00:00.000Z%27)" out=resp headerout=headout HEADEROUT_OVERWRITE;
        headers "Accept"="application/json";
    run;
    /* Read in the response using the JSON libname engine. */
    libname resp json fileref=resp;
    /* Define a data set with the information we want. */
    proc sql;
        create table jobs
            (name char(255),stat char(50),createdBy char(50),creationTimeStamp char(25),expirationTimeStamp char(25), elapsedTime num);
        insert into work.jobs 
            select a.name,b.state,b.createdBy,b.creationTimeStamp,b.expirationTimeStamp,b.elapsedTime
            from resp.items_jobrequest as a,resp.items as b where a.ordinal_items = b.ordinal_items;
    quit;
    /* Check for a next link (meaning there are more results not in the initial response) */
    %local next;
    data _null_;
        set resp.links;
        where rel="next";
        call execute('filename r'||strip(put(_n_,12.0))||' temp;');
        call execute('%nrstr(proc http oauth_bearer=sas_services url="%%nrstr('||"&amp;amp;baseurl"||strip(href)||')" out=r'||strip(put(_n_,12.0))||' headerout=headout HEADEROUT_OVERWRITE;)');
        call execute('    headers "Accept"="application/json";');
        call execute('run;');
        call execute('libname r'||strip(put(_n_,12.0))||' json fileref=r'||strip(put(_n_,12.0))||';');
    run;
    

%mend getjobs;

%getjobs();
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is there something similar to this that anyone has used to access the workload orchestrator list?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Jan 2026 15:32:53 GMT</pubDate>
    <dc:creator>JeffMeyers</dc:creator>
    <dc:date>2026-01-08T15:32:53Z</dc:date>
    <item>
      <title>Viya Question About Collecting Job Status from Workload Orchestrator Programmatically</title>
      <link>https://communities.sas.com/t5/Developers/Viya-Question-About-Collecting-Job-Status-from-Workload/m-p/981709#M6657</link>
      <description>&lt;P&gt;I have a question that I asked SAS directly and they pointed me to this message board.&amp;nbsp; Our team is migrating into SAS Viya and previously ran jobs on a grid service where the status of jobs could be pulled down with a macro and printed.&amp;nbsp; I'm trying to replicate this in the Viya environment.&amp;nbsp; I am using RSUBMIT blocks with SIGNON statements to batch submit programs and I can see these jobs within the workload orchestrator while it they are running:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JeffMeyers_0-1767886131385.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/112554i4B3A3EE664E64A41/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JeffMeyers_0-1767886131385.png" alt="JeffMeyers_0-1767886131385.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I was previously pointed to some code that works with proc http to pull information with an API I believe (I am not familiar with this type of extraction of information).&amp;nbsp; &lt;A href="https://urldefense.com/v3/__https:/communities.sas.com/t5/Administration-and-Deployment/How-to-retrieve-status-of-scheduled-jobs/td-p/784321__;!!ODpDvJZr5w!FmeC0pmxvqu4n3HoO3vO-kqodlDCSSlRwd20Mc7vPUK2dFJ-fXKMi6hNUPRfjCWwhGoMMmj6ZIJ0MUtN9JsBOhlsSxDxMw$" target="_blank"&gt;https://communities.sas.com/t5/Administration-and-Deployment/How-to-retrieve-status-of-scheduled-jobs/td-p/784321&lt;/A&gt;&amp;nbsp;I tried to modify it but it does not pull information about individual RSUBMIT sessions, only the overarching program running the RSUBMITS:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let baseurl=;/**Removed the URL due to company protocol**/
%macro getjobs();
    /* Initialize files */
    filename headout temp;
    filename resp temp;
    /* Call the jobExecution REST API using whatever filter you want to limit the results  */
    proc http oauth_bearer=sas_services url="&amp;amp;baseurl/jobExecution/jobs?start=0%nrstr(&amp;amp;limit)=20%nrstr(&amp;amp;filter)=ge(creationTimeStamp,%272025-12-18T05:00:00.000Z%27)" out=resp headerout=headout HEADEROUT_OVERWRITE;
        headers "Accept"="application/json";
    run;
    /* Read in the response using the JSON libname engine. */
    libname resp json fileref=resp;
    /* Define a data set with the information we want. */
    proc sql;
        create table jobs
            (name char(255),stat char(50),createdBy char(50),creationTimeStamp char(25),expirationTimeStamp char(25), elapsedTime num);
        insert into work.jobs 
            select a.name,b.state,b.createdBy,b.creationTimeStamp,b.expirationTimeStamp,b.elapsedTime
            from resp.items_jobrequest as a,resp.items as b where a.ordinal_items = b.ordinal_items;
    quit;
    /* Check for a next link (meaning there are more results not in the initial response) */
    %local next;
    data _null_;
        set resp.links;
        where rel="next";
        call execute('filename r'||strip(put(_n_,12.0))||' temp;');
        call execute('%nrstr(proc http oauth_bearer=sas_services url="%%nrstr('||"&amp;amp;baseurl"||strip(href)||')" out=r'||strip(put(_n_,12.0))||' headerout=headout HEADEROUT_OVERWRITE;)');
        call execute('    headers "Accept"="application/json";');
        call execute('run;');
        call execute('libname r'||strip(put(_n_,12.0))||' json fileref=r'||strip(put(_n_,12.0))||';');
    run;
    

%mend getjobs;

%getjobs();
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is there something similar to this that anyone has used to access the workload orchestrator list?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2026 15:32:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Viya-Question-About-Collecting-Job-Status-from-Workload/m-p/981709#M6657</guid>
      <dc:creator>JeffMeyers</dc:creator>
      <dc:date>2026-01-08T15:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Viya Question About Collecting Job Status from Workload Orchestrator Programmatically</title>
      <link>https://communities.sas.com/t5/Developers/Viya-Question-About-Collecting-Job-Status-from-Workload/m-p/981760#M6658</link>
      <description>&lt;DIV&gt;
&lt;P&gt;I don’t think SAS should have referred you to the SAS communities and let their customers answer your question.&lt;BR /&gt;SAS Technical Support should be able to answer whether it is possible or if an API exists that can provide specific information about rsubmit sessions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could try using the browser’s developer tools to see if you can identify this API. It’s also worth checking the REST API documentation yourself.&lt;BR /&gt;However, it’s possible that SAS has not made this API public and therefore does not provide support for it.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Jan 2026 13:13:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Viya-Question-About-Collecting-Job-Status-from-Workload/m-p/981760#M6658</guid>
      <dc:creator>MAGG</dc:creator>
      <dc:date>2026-01-09T13:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Viya Question About Collecting Job Status from Workload Orchestrator Programmatically</title>
      <link>https://communities.sas.com/t5/Developers/Viya-Question-About-Collecting-Job-Status-from-Workload/m-p/985190#M6688</link>
      <description>&lt;P&gt;Instead of using RSUMBIT, you might submit the code to the JobExecution service. This way you will see the submitted process in the SAS Job &amp;amp; Flow Monitor&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2026 17:06:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Viya-Question-About-Collecting-Job-Status-from-Workload/m-p/985190#M6688</guid>
      <dc:creator>Massimo_Fabris</dc:creator>
      <dc:date>2026-03-23T17:06:41Z</dc:date>
    </item>
  </channel>
</rss>

