Informix Error -4381: The input file filename has an invalid extension. The file name must have .4gl as the extension.
Cause and resolution
The input file filename has an invalid extension. The file name must have .4gl as the extension.
You do not need to enter the file extension or suffix of .4gl when you type the name of a program source file. However, if you do type a file suffix it must be .4gl; no other is allowed. If you type the suffix incorrectly, enter the command again omitting the suffix. If the file really has a different suffix, you will have to change it.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-4381 fires when a source file is given an extension other than .4gl — per the official
guidance, the extension can be omitted entirely when invoking the compiler, but if given, it
must be exactly .4gl.
- A source file specified with an extension other than
.4gl, per the official guidance — the direct, only cause.
Solutions / Resolution
- Re-enter the command omitting the suffix entirely, per the official guidance, if it was typed incorrectly.
- If the file genuinely has a different suffix, rename it to
.4gl, per the official guidance.
Examples
An incorrect file extension
fglpc myprogram.4g
-- -4381: the extension must be .4gl, or omitted entirely
Corrected
fglpc myprogram
Diagnostic Checks
- Check the source file's extension, and either omit it or correct it to
.4gl.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -4381 in this set yet.
The source file's extension isn't .4gl — omit the extension, or rename the file to use
.4gl.