View Job Queue Info from SQL - IBM i
Job Queue Dealing with Job Queues (JOBQ) is part of day to day life when working with IBM i. There comes many situations where we need to check if a JOBQ is Held or Released, Which subsystem the JOBQ is attached to, No of active/held/released/scheduled jobs in JOBQ, Maximum number of active jobs etc. Different commands (WRKJOBQ, WRKJOBQD, WRKSBSD) are available to view this information. There is another easier way to access this information is by using SQL view JOB_QUEUE_INFO in QSYS2 (system name - JOBQ_INFO). One thing to note is, User should either have read authority to the JOBQ or have one of the special authorities *JOBCTL, *SPLCTL. This view is helpful in many different ways like, List of Job queues present in a library. List of Job queues HELD/RELEASED in a library. Retrieve Subsystem a JOBQ is attached to. List of Job queues in a Subsystem. Retrieve maximum number of active jobs in a Job queue. Retrieve number of Active/Held/Relea...