In a COBOL program that reads data from a file, you encounter an "AT END" condition. What action should be taken to handle this error gracefully?

  • Use the CONTINUE statement
  • Use the EXIT PROGRAM statement
  • Use the FILE STATUS clause
  • Use the READ NEXT statement
When encountering an "AT END" condition in COBOL, using the CONTINUE statement is a graceful way to handle the error. It allows the program to continue processing without terminating, providing an opportunity to take appropriate actions.
Add your answer
Loading...

Leave a comment

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