Batch Files – Record Locks
What is the most proficient technique to eliminate the record lock errors in batch processing?

Software/Hardware used:
ASKED: November 1, 2007  5:22 PM
UPDATED: February 19, 2010  5:21 AM

Answer Wiki:
Walter47 | Nov 2 2007 3:41PM GMT My first guess is that something has precedence. An ovrmsg msgid (PFxxxx) would do it. Jack ============================================================ There are only two rational alternatives. First, stop locking records while batch processes are running. Second, change the batch processes so that they handle the locks -- retry until the lock clears, send messages to someone who will take action or have the batch job end the offending job. Maybe simplest is to have the batch jobs allocate its files with an appropriate locking level, e.g., *EXCLRD. Other processes could still inquire, but none would get update locks. The batch process would know at the start if other processes already had potential for interference. By issuing ALCOBJ at the start, very little change (if any) would be needed internal to the batch process. The allocation could be made in a wrapper that was entirely outside existing batch programming. But a real answer requires an understanding of what is meant by "proficient" in your question. It also requires knowing something about your batch process. Tom
Last Wiki Answer Submitted:  February 19, 2010  5:20 am  by  ITKE   16,755 pts.
All Answer Wiki Contributors:  ITKE   16,755 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

My first guess is that something has precedence. An ovrmsg msgid (PFxxxx) would do it.

Jack

 120 pts.

 

Jack
Thanks for all your answers.
Sean

 16,755 pts.