


The error and exit procedure facilities allow you to cause one or more error or exit procedures to be called automatically when a program generates a particular type of error or terminates normally. Implementation of error and exit procedures in ACUCOBOL-GT facilitates the porting of Micro Focus COBOL applications containing this feature to ACUCOBOL-GT.
You can specify one or more error procedures to be called automatically when a run unit generates any of certain runtime errors. See the description of CBL_ERROR_PROC in this appendix for details.
You can specify one or more exit procedures to be called automatically when a run unit terminates normally. See CBL_EXIT_PROC in this appendix for details.
An exit procedure can retrieve information about the termination that induced it with the CBL_GET_EXIT_INFO routine. See the entry in this appendix for details.
The error and exit procedures discussed in this appendix are: