ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Sys Catalog That Stores Job Queue Status

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Sys Catalog That Stores Job Queue Status

    Hi,

    I want to write a job that will continuously monitor my job queue and if it is hold for long (let say 5 mins) then job should send me a message.

    is there any system catalog that I can read for job queue status?

    Thanks in advance.

  • #2
    You might rig something up with the JOB_INFO table function, Kishor.

    The JOB_INFO table function returns one row for each job meeting the selection criteria. It returns information similar to what is returned by the Work with User Jobs (WRKUSRJOB), Work with Subsystem Jobs (WRKSBSJOB), and Work with Submitted Jobs (WRKSBMJOB) CL commands and the List Job (QUSLJOB) API.

    Comment

    Working...
    X