Multiple choice technology mainframe

FILE-STATUS is used to

  1. Check the logical abnormal conditions.

  2. Check the existence of a file while open, close etc.

  3. Check the execution of the program.

  4. None of the above.

Reveal answer Fill a bubble to check yourself
B Correct answer
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.