|
Add a reply or return to your submitted job. i.e. have the job at LR send an entry to a data queue identifying itself and completion status. You would wait at the data queue for the message before submitting the next job. But would this not lock up the user terminal? Waiting for the first to complete before the second is submitted from the subfile? Perhaps submit all the jobs as held with a final job, not held, that reads a file of jobs submitted and releases one job at a time, waiting for the data queue signaling the completion of the previous job to release the next job. Well this means that you have TWO jobs running in batch and I hope that there system allows this. Good Luck, Christopher K. Bipes mailto:ChrisB@Cross-Check.com Sr. Programmer/Analyst mailto:Chris_Bipes@Yahoo.com CrossCheck, Inc. http://www.cross-check.com 6119 State Farm Drive Phone: 707 586-0551 x 1102 Rohnert Park CA 94928 Fax: 707 586-1884 If consistency is the hobgoblin of little minds, only geniuses work here. Karen Herbelin - Readers Digest 3/2000 -----Original Message----- From: Silvio Santos [mailto:Silvio.Santos@brainag.com] Sent: Tuesday, June 13, 2000 9:04 AM To: RPG400-L@midrange.com Subject: How to wait for a submit job I have a subfile in which I can run several options and there are some of them that can be run in batch, I have one program that does that. Before those batch options start to run I copy all the selected subfile records to a temporary file. My problem is that I would like to know how can I wait for the first sbmjob and then run the second, I dont want two or more jobs running simultaneously. I could send them for a jobq that only runs a job at the same time, but I dont have one and it isnt guaranteed that if I have one in one customer (for instance QBATCH jobq) I will have the same in another, and also I dont want to create one especially for that. How can I submit one job and then wait for that end and there run another one (the same job but with other *ENTRY parms) if it as been submited meanwhile ? I use RPG/400. TIA, Silvio. +--- | 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.