Hello Scott Klement,
Would request your assistance to resolve an issue in our IBMi production system.
Multiple batch jobs are writing to a single DTAQ using QSNDDTAQ API. During this, a lock situation is occurring which delays the process.
Sometimes we receive an error (CPF9503 - Cannot lock data queue, Another job currently has exclusive use of this data queue).
Not sure if one of the batch jobs is locking DTAQ while adding entry. If so, is there a way to write to DTAQ without locking?
Also is there a way to find what is locking the DTAQ? At this point we could not find anything with WRKOBJLCK command – guess it is so quick and happening in fraction of a second.
Is there something that needs to be taken into account while writing to a DTAQ with parallel jobs?
Prototype used:
D SendData PR ExtPgm('QSNDDTAQ')
D Dtaqnam_ 10a const
D Dtaqlib_ 10a const
D Dtaqlen_ 5p 0 const
D Data_ 32777a const
Please advise. Thank you!
Would request your assistance to resolve an issue in our IBMi production system.
Multiple batch jobs are writing to a single DTAQ using QSNDDTAQ API. During this, a lock situation is occurring which delays the process.
Sometimes we receive an error (CPF9503 - Cannot lock data queue, Another job currently has exclusive use of this data queue).
Not sure if one of the batch jobs is locking DTAQ while adding entry. If so, is there a way to write to DTAQ without locking?
Also is there a way to find what is locking the DTAQ? At this point we could not find anything with WRKOBJLCK command – guess it is so quick and happening in fraction of a second.
Is there something that needs to be taken into account while writing to a DTAQ with parallel jobs?
Prototype used:
D SendData PR ExtPgm('QSNDDTAQ')
D Dtaqnam_ 10a const
D Dtaqlib_ 10a const
D Dtaqlen_ 5p 0 const
D Data_ 32777a const
Please advise. Thank you!
Comment