|
Stephen Why don't you put a flag at the end of the data area viz. 'Y' to say that a job is currently using the data area and update it after you submitted the job. In the submitted program, at the end of the job reset that flag in data area to say ' ', so other jobs can start using the data area. You may have to change all the programs (how many?) using this data area to check for the flag before using the data area for submiting jobs. Srinivas.rao@ipaper.com ______________________________ Reply Separator _________________________________ Subject: Passing ownership of object locks? Author: midrange.com!midrange-l-owner@mcs.com at INTERNET Date: 12/3/97 10:33 AM Can I transfer the ownership of an object lock to another program ? The program I am working on does the following :- 1. Locks a data area (so no one elses can run this job). 2. Performs some data validation. 3. Submits another job to QBATCH to perform some processing. 4. Releases the data area lock. However, the lock on the data area needs to be maintained until the batch job has finished. Even though the submitted job re-locks the data area, this action could be delayed if it gets queued up behind other jobs, and someone else could obtain the lock on the data area. Can anyone help or perhaps suggest a better method ? TIA Stephen Hunt Technical Systems Manager Harvestime Limited +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to "MIDRANGE-L@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 +--- uucp +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to "MIDRANGE-L@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.