How can the EXIT statement be used to terminate the execution of a COBOL program?

  • By setting a specific condition code
  • By specifying EXIT PROGRAM in the EXIT statement
  • By using PERFORM UNTIL condition with EXIT
  • By using STOP RUN statement
The EXIT statement alone does not terminate the execution of a COBOL program. To achieve program termination, you can use the STOP RUN statement, which explicitly instructs the COBOL run-time system to stop the program execution.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *