Fortran · File status code

IOSTAT 45 — Keyword Value Error in OPEN Statement

What does IOSTAT 45 — Keyword Value Error in OPEN Statement mean in Fortran?

An OPEN (or CLOSE) specifier was given a value it doesn't accept — for instance ACCESS='DIRECTX' or a STATUS= value that isn't one of the standard keywords — typically a typo in a string literal.

IOSTAT 45 — Keyword Value Error in OPEN StatementIntel Fortran

Condition

An OPEN (or CLOSE) specifier was given a value it doesn't accept — for instance ACCESS='DIRECTX' or a STATUS= value that isn't one of the standard keywords — typically a typo in a string literal.

Fix

Double-check every specifier value against the standard's allowed keyword list (STATUS, ACCESS, FORM, ACTION, etc.), since the compiler doesn't validate string literals at compile time.

Pending source verification. Not yet checked against official documentation.

Related file status code