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.