Fortran · File status code

IOSTAT 58 — Format Syntax Error

What does IOSTAT 58 — Format Syntax Error mean in Fortran?

The FORMAT string associated with a formatted I/O statement contains a syntax error — mismatched parentheses, an invalid edit descriptor character, or a malformed repeat count. This includes runtime-constructed format strings held in character variables.

IOSTAT 58 — Format Syntax ErrorIntel Fortran

Condition

The FORMAT string associated with a formatted I/O statement contains a syntax error — mismatched parentheses, an invalid edit descriptor character, or a malformed repeat count. This includes runtime-constructed format strings held in character variables.

Fix

Inspect the exact FORMAT statement (or character variable) referenced by the failing I/O statement for descriptor typos, and remember that a format built at runtime isn't checked until it's actually used.

Pending source verification. Not yet checked against official documentation.

Related file status code