Waits on CHKUSER.

Document ID : KB000013115
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

Is there a way to determine waits on CHKUSER tasks?

Is there a way to detect when we're short on CHKUSER tasks? We really don't want to wait until one comes available to abort the ERUS.

Answer:

 There is no such thing as a wait on a Check User task. The purpose of the CKUR is to notify us when the batch job goes away between DML commands. Any wait time would be associated with the EXTERNAL WAIT TIME as we would have no way to distinguish between the amount of time since the last DML processed and the failure of the batch job in its address space. If the external wait time exceeded the CV's External Wait value, the CV task would be aborted and recovered if no CKUR was available. However as soon as a CKUR was available an attempt to assign it to the failed batch job would be recognized and the CV task aborted.