When using the READ verb in COBOL, what happens when the end-of-file (EOF) condition is encountered?

  • The program ignores the EOF condition
  • The program terminates abruptly
  • The system automatically opens the next available file
  • The system raises an end-of-file (EOF) status code
When the READ verb in COBOL encounters the end-of-file (EOF) condition, the system raises an end-of-file status code. This allows the program to handle the conclusion of file processing gracefully.
Add your answer
Loading...

Leave a comment

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