How errors are handled

When the CICS® Service Flow Runtime encounters an error, the error records are written to the defined transient data queue (TDQ).

An error listener program retrieves the error records off the queue and writes them to an Error file. The Error Listener program name is DFHMAERQ; the transaction ID is CMAQ. You can also use WebSphere MQ to perform error processing. See Error processing using WebSphere MQ for details. Both options are shown in the figure below.
Figure 1. CICS Service Flow Runtime error processing
This graphic illustrates how performs error processing. On the right there is a box labeled run time. Inside the box it shows an error has occurred. Within the box labeled run time is another smaller box labeled Error log facility. This box has an arrow extending to the right and then splitting into two. One arrow points to a TDQ error queue labeled (CMAQ) and the other arrow points to a system queue labeled SYSTEM.error.queue. Below the error queues is a box labeled Error listener (for the Error Listener program). This box has arrows that show it reading from the queues. The box labeled Error listener also has an arrow that points to the Error file, indicating that errors are written to this file.