Fortran · File status code
What does IOSTAT 11 — Unit Not Connected mean in Fortran?
Raised when a READ, WRITE, or other I/O statement references a logical unit number that has not been connected to a file via OPEN. It usually means the unit number is wrong, the OPEN failed silently earlier without checking IOSTAT, or the unit was already closed before this statement ran.
Raised when a READ, WRITE, or other I/O statement references a logical unit number that has not been connected to a file via OPEN. It usually means the unit number is wrong, the OPEN failed silently earlier without checking IOSTAT, or the unit was already closed before this statement ran.
Verify the unit number matches the one used in the corresponding OPEN, and check the IOSTAT of that OPEN statement to confirm it actually succeeded before any I/O is attempted on the unit.