Constant com.ibm.as400.access.jobList.addJobSelectionCriteria(JobList.SELECTION_JOB_QUEUE

J

Jeffrae

I am using the following code to try and return a list of jobs that sre
running in QBATCH5

---
QSYSObjectPathName path = new
QSYSObjectPathName("QGPL","QBATCH1","JOBQ");

jobList.addJobSelectionCriteria(JobList.SELECTION_PRIMARY_JOB_STATUS_ACTIVE,
Boolean.TRUE);
jobList.addJobSelectionCriteria(JobList.SELECTION_PRIMARY_JOB_STATUS_OUTQ
, Boolean.FALSE);
jobList.addJobSelectionCriteria(JobList.SELECTION_JOB_QUEUE,
path.getPath());

For some reason it brings back a list of my Active jobs that show up in
WRKACTJOB...

Shouldn't
jobList.addJobSelectionCriteria(JobList.SELECTION_JOB_QUEUE,
path.getPath()); limit this to just QBATCH 5?

Thank You,
Jeff P
 
J

Joe Attardi

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,270
Messages
2,571,102
Members
48,773
Latest member
Kaybee

Latest Threads

Top