🎴 Flashcard Mode
Mainframe Technologies: COBOL, JCL, and DB2
Card1 / 20
Mastered0
Review0
QuestionClick to flip
What will happen when a file that doesnt exist is opened in I-O mode?
AnswerClick to flip back
A
The open fails and error occurs
💡 Explanation:
In COBOL, opening a non-existent file in I-O (Input-Output) mode causes the open operation to fail, resulting in a file status error (typically 35). Unlike OUTPUT or EXTEND modes, I-O mode requires the file to already exist, so it will not automatically create the file.