1,410 pts.
 List jobs in a job queue
Is there an API that will return a list of jobs in a job queue?  I am particularly interested in a job queue that should have two scheduled jobs in it but might not.

Software/Hardware used:
AS/400 v5r4
ASKED: March 16, 2011  8:11 PM
UPDATED: March 17, 2011  5:58 PM

Answer Wiki:
Try QGYOLJOB Here is a link with more info http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=%2Fapis%2Fqgyoljob.htm
Last Wiki Answer Submitted:  March 16, 2011  8:43 pm  by  CharlieBrowne   33,695 pts.
All Answer Wiki Contributors:  CharlieBrowne   33,695 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

…a job queue that should have two scheduled jobs in it but might not.

Are these jobs submitted with a SCDDATE() and SCDTIME(), or are they scheduled on the job scheduler to be submitted at a specific date and time?

In the first case, the jobs will be on the queue. In the second case, the won’t be on the queue until the scheduler submits them (and then they’ll be off of the queue as soon as they can start to run).

I think I have sample code that lists job queue entries with QGYOLJOB, but it’s not simple.

Tom

 110,115 pts.