Documentation

12.5 File and format checks: FIL01–FIL07

FIL01 requires readable nonempty text. FIL02 reports BOM/non-ASCII characters. FIL03–FIL06 cover line endings, line length, tabs and trailing spaces. FIL07 reports the number of $PROBLEM records.

Default corrections can remove a BOM, transliterate typographic quotes/dashes, µ, × and nonbreaking spaces, normalize line endings, replace tabs, trim trailing whitespace and wrap long $INPUT/$TABLE lists.

Why “formatting” matters

A typographic minus is not the ASCII subtraction operator. Tabs and line endings can be interpreted differently across editors or NONMEM environments. Long lines can exceed a portability limit. Mechanical correction is relatively low risk, but transliteration inside comments or labels can still change intended presentation; review it.

Multiple $PROBLEM records are allowed. Each problem must be reviewed in its own context; parameters and records do not form one undifferentiated model.

Reading each FIL result

Begin with FIL01 because no later result is meaningful if the file is empty or unreadable. For FIL02, locate every flagged byte rather than assuming all non-ASCII content is in comments. FIL03 should describe one newline convention across the file. FIL04 uses the configured portability limit, so a pass is relative to that setting. FIL05 and FIL06 are hygiene checks that make diffs more stable. FIL07 is informational: one or more problems may be correct, but the count must agree with the intended run design.

Investigation

Open the original in a text/hex-aware editor, identify encoding and newline convention, then compare the generated diff. Confirm wrapping did not split code where continuation syntax is required. Hash the original and corrected files separately.

Common mistakes

  • Calling a non-ASCII operator “just a display issue.”
  • Reformatting the whole file so scientific changes disappear in noise.
  • Assuming one problem's checks describe every $PROBLEM.
  • Approving transliteration without checking comments/units.

Checklist

  • Verify bytes, encoding, line endings and limits.
  • Keep mechanical diffs minimal.
  • Review every problem separately.
  • Preserve source/corrected hashes.

Further reading

See source preservation, format corrections and record checks.