Intel® Fortran Compiler 16.0 User and Reference Guide

I/O Message Specifier (IOMSG=)

The I/O message specifier designates a variable to contain the message to be returned when an I/O error occurs. It takes the following form:

IOMSG=msg-var

msg-var

Is a scalar default character variable.

If an error (ERR=), end-of-file (END=), or end-of-record (EOR=) condition occurs during execution of an I/O statement, msg-var is assigned an explanatory message.

If no error occurs, the value of the variable remains unchanged.