Fortran · File status code

IOSTAT 22 — Input Record Too Long

What does IOSTAT 22 — Input Record Too Long mean in Fortran?

Returned when an input record is longer than the record length specified (or defaulted) when the file was opened, most often on fixed-length direct-access files where an actual record exceeds the declared RECL.

IOSTAT 22 — Input Record Too LongIntel Fortran

Condition

Returned when an input record is longer than the record length specified (or defaulted) when the file was opened, most often on fixed-length direct-access files where an actual record exceeds the declared RECL.

Fix

Increase RECL on the OPEN statement to match the true maximum record length, or fix whatever wrote the oversized record in the first place.

Pending source verification. Not yet checked against official documentation.

Related file status code