Informix Error -4413: The label label-name has already been defined within this function/report.
Cause and resolution
The label label-name has already been defined within this function/report.
The name shown appears in two or more LABEL statements. Check the spelling of the name; if it is as you intended, then look back through this function, report, handler, or main program for other LABEL statements and find the one that uses this same name. Change one of them to use a different name. Only NewEra returns this error.
-4413 The label label-name has already been defined within this main program or function.
The name shown appears in two or more LABEL statements. Check the spelling of the name; if it is as you intended, then look back through this function or main program for other LABEL statements and find the one that uses this same name. Change one of them to use a different name. Only 4GL returns this error.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-4413 covers two variants of the same underlying condition — per the official guidance, a
LABEL name appears in more than one LABEL statement: NewEra scopes this to the current
function, report, handler, or main program; 4GL scopes it to the current function or main
program.
- The same label name used in more than one
LABELstatement within the same scope, per the official guidance — the direct, only cause.
Solutions / Resolution
- Check the spelling of the name, per the official guidance.
- If it's spelled as intended, find the other
LABELstatement using the same name, and change one of them, per the official guidance.
Examples
A duplicate label
LABEL retry:
...
LABEL retry:
-- -4413: "retry" is already defined above
Corrected
LABEL retry:
...
LABEL cleanup:
Diagnostic Checks
- Check every
LABELstatement in the function/report/main program, and rename any duplicate label name.
Related Errors / Related Topics
- -4414 — "The label label-name has been used but has never been defined within this
function/report." The mirror-image error, about a label referenced by
GOTO/WHENEVERbut never defined, rather than defined more than once.
The same label name is defined more than once in the same scope — rename one of them.