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.
Loading...
Related Quiz
- Which division of a COBOL program is responsible for defining external files?
- How does the COBOL SORT verb differ from the MERGE verb in terms of their outputs?
- In COBOL, what is the difference between a data item defined in the WORKING-STORAGE section and a data item defined in the FILE SECTION?
- The _____ section in the DATA DIVISION is used for defining variables with a scope that spans the entire program.
- When dealing with VSAM and ISAM files, it's important to implement proper ________ strategies to avoid data inconsistencies.