For suppose one person submitting job A and iam submitting job B. iam picking 5th record in one object and job A also picking same record . so my question is my job never goes into MSGW..What we have to do ?
Is your job in a LCKW (lock wait) condition? Depending on the Wait time your job will eventually get into MSGW (Unable to allocate...) The only thing that can be done is to wait for the job that has the lock to finish. Sometimes one can have interlocking conflict. At that time you must decide which of the 2 jobs can be cancelled. ENDJOB.
If you are both trying to use the same record in the same file the second person who tries to get access should get an error. They should see a MSGW with an error "Unable to allocate record" as long as they are accessing the record for update purposes. If they do not plan on updating the record you can do a chain(N) to chain and not lock the record.
what I am asking is first 'A' submit his job and he picks one record , at same time iam also submitting job 'B' with same record . i know my job will goes into MSGW but my question is when iam submitting my job it never goes into MSGW or any other .
Without knowing your job, it could be waiting on data from a data queue or message queue. If the other job does not go into a MSGW status it may be checking for locks and looping until freed. It could be a number of other things.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!
Discuss This Question: 8  Replies
The only thing that can be done is to wait for the job that has the lock to finish. Sometimes one can have interlocking conflict. At that time you must decide which of the 2 jobs can be cancelled. ENDJOB.