On 03-Aug-2015 12:53 -0600, Bakutis, Becky wrote:
1. Is there an API that can automatically transfer control of a
running batch job to another subsystem?

2. During month-end we have a large number of user-submitted jobs
that automatically go to the QBATCH job queue and hold up other
jobs. Is there a way to automatically redirect jobs to a different
subsystem once they hit the job queue?

After a quick review of the replies, at least one seemed to mention an API to get a list jobs\entries on a Job Queue (JOBQ). However I did not see any replies that mention the use of the request to CHGJOB JOBQ(jobqlib/jobqname) to reroute a job [that still resides on a job queue] to different job queue that is associated with another Subsystem Description (SBSD) and its associated [preferably] active Subsystem (SBS). If the batch job is no longer waiting on the job queue, the Change Job (CHGJOB) request would fail generically with the specific previously-logged diagnostic error message CPF1339 "Job queue not changed. Job &3/&2/&1 not on job queue."; other failures may be possible, and able to be ignored, conspicuously the error suggesting the /job number not found/ for a job that has run to completion since first being located via the list-API.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2020 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].