Your COBOL program is reading records from a file, and you want to specify actions to be taken when invalid data is encountered. Which phrase should you use with the READ verb?

  • AT END
  • END-OF-FILE
  • INVALID KEY
  • NOT INVALID
In COBOL, the phrase "INVALID KEY" is used with the READ verb to specify actions to be taken when invalid data is encountered during a file read operation. This allows the program to handle data validation errors gracefully and take appropriate actions based on the encountered condition.
Add your answer
Loading...

Leave a comment

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