When a file operation fails in COBOL, which special register contains the status code that can be checked for specific error conditions?

  • ERROR-CODE
  • FILE-STATUS
  • RETURN-CODE
  • STATUS-CODE
The FILE-STATUS special register in COBOL contains the status code that can be checked after a file operation to identify specific error conditions. Programmers can use this information to implement error-handling logic based on the nature of the error.
Add your answer
Loading...

Leave a comment

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