|
Nick, Retrieve Job Status (QWCRJBST) should do what you want (and happens to run faster then QUSRJOBI as the only thing it worries about is the jobs status). QWCRJBST is also found in the Work Management category of System APIs. Bruce > >We are writing a function for locking of functions that work on an object >(Basically something like an order), To do this we are creating a record on >a file for each user that access this object at each relevant lock state. >Before doing this it checks to see if object is locked. If it is locked it >needs to check that the job actually is active, and not just on OUTQ(It may >of crashed?). Is there an api that can be used to check that a job is >active. Or is there another way of doing this. > >I have looked at QUSRJOBI it would do the job but only allows access if user >calling has JOBCTL. > >Nick R > +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.