🎴 Flashcard Mode
Mainframe Programming: GDG, Assembler & COBOL
Card1 / 20
Mastered0
Review0
QuestionClick to flip
FILE-STATUS is used to
AnswerClick to flip back
A
Check the existence of a file while open, close etc.
💡 Explanation:
The FILE-STATUS clause assigns a two-character variable that the runtime system updates after every I/O statement. This allows the program to programmatically check the success or failure of operations such as opening, closing, or accessing the file.