The ______ clause in COBOL is used to specify the action to be taken when an exception occurs.
- EXCEPTION-CONDITION
- EXCEPTION-CONTROL
- EXCEPTION-HANDLER
- ON EXCEPTION
The EXCEPTION-HANDLER clause in COBOL is used to specify the action to be taken when an exception occurs during program execution. It allows the programmer to define custom error-handling logic for specific exceptions.
Loading...
Related Quiz
- In COBOL, the "AT END" phrase can be used to handle exceptions related to reaching the _____ of a file.
- In a COBOL program, you have encountered a situation where you need to exit the program due to a critical error. Which statement should you use to ensure a clean program termination?
- In error handling, what is the purpose of the EXIT statement's numeric operand?
- Which statement in the COBOL Procedure Division is used to perform calculations and data manipulation?
- The LEVEL NUMBER in COBOL indicates the ________ of the data item.