Attention exit routines for CAF

An attention exit routine enables you to regain control from Db2 during long-running or erroneous requests. Call attachment facility (CAF) has no attention exit routines, but you can provide your own if necessary.

An attention exit routine works by detaching the TCB that is currently waiting on an SQL or IFI request to complete. After the TCB is detached, Db2 detects the resulting abend and performs termination processing for that task. The termination processing includes any necessary rollback of transactions.

You can provide your own attention exit routines. However, your routine might not get control if you request attention while Db2 code is running, because Db2 uses enabled unlocked task (EUT) functional recovery routines (FRRs).