Dealing with activity abends

You can deal with activity abends by coding your application to try the failed activity again or compensate the siblings of the failed activity.

About this task

Compensation is the act of modifying, or compensating for, the effects of a completed activity. For example, compensation can reverse or modify actions taken by preceding activities or terminate business transactions. If a program that implements an activity abends, the parent of the activity receives control. (If the failed activity was run asynchronously, the parent is reactivated.) The CHECK ACTIVITY command issued by the parent returns a COMPSTATUS of ABEND - see Dealing with BTS errors and response codes.

Your application should be coded to deal with an activity abend. The parent of the failed activity might, for example, choose to do either of the following:


dfhp94i.html | Timestamp icon Last updated: Monday, 5 June 2017