Search code examples
ibm-midrangejob-queue

How to retrieve the list of scheduled jobs in a job queue?


I am assigned with a task to check if a job is currently present in a job queue as scheduled job. The matching criteria is the name of the job - as long as the job name matches the specified one then it counts. So is there any simple way to return the list of scheduled jobs in a give job queue? Or is there any better way to accomplish my task?


Solution

  • The QUSLJOB API will allow you to retrieve this information.

    There is more information in Chapter 13: Work Management APIs of the book APIs at work.

    APIs at work