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. Support of error and exit procedures in ACUCOBOL-GT helps facilitate 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 terminates normally or generates any of certain runtime errors. See the CBL_ERROR_PROC Routine in this appendix for details.
You can specify one or more exit procedures to be called automatically when a run unit terminates normally. See the CBL_EXIT_PROC Routine 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: