Re: Is there an easy way, in CL, to find out if there are other jobs with a known jobname active or scheduled?
Daniel Gross <[email protected]> Wed, 15 Jul 2026 19:57:06 +0200
| Newsgroups | gmane.comp.hardware.ibm.midrange |
|---|---|
| Message-ID | <[email protected]> |
A small SQLRPGLE program (maybe wrapped into a CMD) might be your best bet. With the JOB_INFO table function you receive exactly what you need. - https://www.ibm.com/docs/en/i/7.6.0?topic=services-job-info-table-function With a receiver variable you can return the job count. HTH Daniel > Am 15.07.2026 um 19:50 schrieb James H. H. Lampert via MIDRANGE-L <[email protected]>: > > Exactly what it says on the tin. I've got a CL program that submits jobs under a given jobname. And I'm finding that somehow, multiple copies of that job are running simultaneously. Is there an easy way that the program can find out how many of the job it wants to submit are already either running or waiting to run? > > -- > JHHL > -- > This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list > To post a message email: [email protected] > To subscribe, unsubscribe, or change list options, > visit: https://lists.midrange.com/mailman/listinfo/midrange-l > or email: [email protected] > Before posting, please take a moment to review the archives > at https://archive.midrange.com/midrange-l. > > Please contact [email protected] for any subscription related questions. > -- This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: [email protected] To subscribe, unsubscribe, or change list options, visit: https://lists.midrange.com/mailman/listinfo/midrange-l or email: [email protected] Before posting, please take a moment to review the archives at https://archive.midrange.com/midrange-l. Please contact [email protected] for any subscription related questions.