Automic Workload Automation

Expand all | Collapse all

How to get the list of Jobs with Return codes set in the Runtime Tab

  • 1.  How to get the list of Jobs with Return codes set in the Runtime Tab

    Posted Dec 05, 2018 09:37 AM
      |   view attached

    Dear Experts,

     

    Is there any way to find out the list of jobs  and its return codes set  in the system ? It would be great if we can have a DB query to find it out.

     

    I'm not looking for jobs status after the execution. I would like to have a query to list the jobs with the return code set in the Run Time Tab

     

    Thanks and Regards

    Vimalan



  • 2.  Re: How to get the list of Jobs with Return codes set in the Runtime Tab

    Posted Dec 05, 2018 12:39 PM

    Is this what you are looking for?

     

    select *
    from oh
    where oh_maxretcode <> 0



  • 3.  Re: How to get the list of Jobs with Return codes set in the Runtime Tab

    Posted Dec 05, 2018 12:51 PM

    yes Thank you



  • 4.  Re: How to get the list of Jobs with Return codes set in the Runtime Tab

    Posted Dec 05, 2018 12:53 PM

    Whoops.  You also need to filter out logically deleted rows like so;

     

    select *
    from oh
    where oh_maxretcode <> 0
    and oh_deleteflag = 0