Any I-O operations on a file, there are chances that it may fail. We need to have COBOL FIle Error…