Informix Error -4319: The symbol variable-name has been defined more than once.
Cause and resolution
The symbol variable-name has been defined more than once.
The variable that is shown has appeared in at least one other DEFINE statement before this one. If this DEFINE is within a function or the MAIN section, the prior one is also. If this DEFINE is outside any function, the prior one is also outside any function; however, it might be within the file included by the GLOBALS statement.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-4319 fires when a variable appears in more than one DEFINE statement — per the official
guidance, if this DEFINE is within a function or MAIN, the prior one is also; if it's
outside any function, the prior one is also outside any function (possibly in a GLOBALS-
included file).
- The same variable name declared in more than one
DEFINEstatement within the same scope, per the official guidance — the direct, only cause.
Solutions / Resolution
- Remove the duplicate
DEFINE, or rename one of the two variables, checking anyGLOBALS-included file if the duplicate isn't in the local module.
Examples
A duplicate DEFINE
DEFINE qty INTEGER
...
DEFINE qty DECIMAL
-- -4319: qty is already defined above
Corrected
DEFINE qty INTEGER
Diagnostic Checks
- Check every
DEFINEof the named variable within the same scope (including anyGLOBALSfile), and remove or rename the duplicate.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -4319 in this set yet.
A variable is defined more than once in the same scope — remove or rename the duplicate
DEFINE.