An application program can gain control when it is selected as the victim of a deadlock.
Dead Lock in IMS DB
How to prevent Deadlock..
The program can receive a status code ‘BC’ and make a programmatic decision as to how handle the deadlock instead of terminating with a U0777 ABEND.
There is an other opportunity for you to refresh your knowledge on IMS DB status codes asked in many interviews. An internal ROLB will be issued prior to the receipt of the ‘BC’ status code.