Fortran · File status code

IOSTAT 43 — File Name Specification Error

What does IOSTAT 43 — File Name Specification Error mean in Fortran?

Returned when the pathname or file name passed to OPEN or INQUIRE is syntactically unacceptable to the operating system — illegal characters, malformed drive/device syntax, or a name that's too long.

IOSTAT 43 — File Name Specification ErrorIntel Fortran

Condition

Returned when the pathname or file name passed to OPEN or INQUIRE is syntactically unacceptable to the operating system — illegal characters, malformed drive/device syntax, or a name that's too long.

Fix

Validate and sanitize any dynamically constructed FILE= string before the OPEN, especially when concatenating directory and file name components, and watch for platform-specific path separator differences.

Pending source verification. Not yet checked against official documentation.

Related file status code