Fortran · File status code

IOSTAT 46 — Inconsistent OPEN/CLOSE Parameters

What does IOSTAT 46 — Inconsistent OPEN/CLOSE Parameters mean in Fortran?

Raised when two specifiers on the same OPEN or CLOSE statement contradict each other — for example READONLY combined with STATUS='NEW', or STATUS='SCRATCH' combined with an explicit FILE= name.

IOSTAT 46 — Inconsistent OPEN/CLOSE ParametersIntel Fortran

Condition

Raised when two specifiers on the same OPEN or CLOSE statement contradict each other — for example READONLY combined with STATUS='NEW', or STATUS='SCRATCH' combined with an explicit FILE= name.

Fix

Review the OPEN/CLOSE statement for specifier combinations that don't logically make sense together and remove the conflicting one.

Pending source verification. Not yet checked against official documentation.

Related file status code