When to Call acu_abend()

We recommend calling acu_abend() from your own signal handlers only when an application is executing COBOL code when the signal occurs. Otherwise, you can omit the call to acu_abend(). For example, under the following circumstances, you do not need to call acu_abend():

  1. You made a call to acu_cobol() to execute a COBOL program that then exited, and
  2. After acu_cobol() returns, your application executes some other non-COBOL processing during which a signal is caught.

In fact, calling acu_abend() at this point may result in misleading error messages because the signal did not occur when running a COBOL program.