How does the EXIT statement differ from the CONTINUE statement in COBOL error handling?

  • CONTINUE is used to exit the program
  • CONTINUE is used to transfer control to the next statement
  • EXIT is used to exit a specific paragraph or section
  • EXIT is used to terminate the entire program
The EXIT statement in COBOL is used to exit a specific paragraph or section, providing a structured way to control the flow of the program. In contrast, the CONTINUE statement simply transfers control to the next statement without any conditional checks.
Add your answer
Loading...

Leave a comment

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