|
I've done this before and the only way I found is to go to MI. You'll need to be pretty proficient in MI and have an in depth knowledge of OS/400 job structures and work control block tables (WCBTE's). Of course, IBM could have provided some sort of API since I last delved into this area. At 02:36 PM 7/14/98 -0400, you wrote: >I am trying to write a utility program that would make it easier to find wich job is blocking another. It would work like this: >1- we enter the comand giving it a job name as a parameter >2- it retreive all the files used by this jobs >3- for each file, it check if the job as a lock on the file/record or if it is waiting >4- for each file that the job is waiting for, it retreive all the jobs having a lock on that file >5- display the jobs found in step 4 so we can take action (call the user ...) > >Currently, i have a problem with step 2. I did not find any command or API that can retreive the list of files used by a job. Any idea? > >Denis Robitaille >Cascades inc. >Tel: 819-363-5187 >DRobitaille@cascades.com > >+--- >| This is the Midrange System Mailing List! >| To submit a new message, send your mail to MIDRANGE-L@midrange.com. >| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. >| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. >| Questions should be directed to the list owner/operator: david@midrange.com >+--- > +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-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.