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?

  • EXIT PARAGRAPH
  • EXIT PROGRAM
  • GOBACK
  • STOP RUN
The STOP RUN statement in COBOL is used to terminate the program gracefully. It releases resources, closes files, and performs necessary cleanup before ending the program.
Add your answer
Loading...

Leave a comment

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