Automic Workload Automation

  • 1.  Can we put a check on the job report of a running job

    Posted Jun 27, 2018 07:15 AM

    Hello Team,

     

    Can we put a check on the report of a running OS job and cancel the job if it is not writing any output to the report for some time. Is that doable, if so let me know.

     

    Thanks,

    Srujan.



  • 2.  Re: Can we put a check on the job report of a running job
    Best Answer

    Posted Jun 28, 2018 11:41 AM

    You can do something like this:

    1. Use the RUNNR2ALPHA function to get the alphanumeric version of the run ID.
    2. Add the letter O to the beginning and .txt to the end and you have the output file name of the job.
    3. The path where the log is written depend on the value of the UC_EX_PATH_JOBREPORT variable for the agent.
    4. Run another job to monitor the size of the output file.


  • 3.  Re: Can we put a check on the job report of a running job

    Posted Jun 28, 2018 02:59 PM

    Thank you @michael

     

    Would you mind tell me how to monitor the size of the output file in Automic.

     

    thanks,

    Srujan



  • 4.  Re: Can we put a check on the job report of a running job

    Posted Jun 29, 2018 04:32 AM

    There is not built-in function for this. You’d have to write an OS job to do it.