Fortran · File status code

IOSTAT 67 — Input Statement Requires Too Much Data

What does IOSTAT 67 — Input Statement Requires Too Much Data mean in Fortran?

A READ (typically unformatted, or formatted with PAD='NO') tried to pull more data than the current record actually contains, and the runtime isn't allowed to pad the missing portion with blanks.

IOSTAT 67 — Input Statement Requires Too Much DataIntel Fortran

Condition

A READ (typically unformatted, or formatted with PAD='NO') tried to pull more data than the current record actually contains, and the runtime isn't allowed to pad the missing portion with blanks.

Fix

Confirm the record actually contains as much data as the READ's I/O list expects, or open the file with PAD='YES' (the default for formatted files) so short records are blank-padded instead of erroring.

Pending source verification. Not yet checked against official documentation.

Related file status code