Informix Error -4488
-4488 The program cannot CONTINUE or EXIT statement-type at this point
because it is not immediately within statement-type statement.This CONTINUE or EXIT statement is not appropriate in its context. Possibly the statement is misplaced, or possibly the statement type was specified incorrectly.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-4488 is a general version of the CONTINUE/EXIT scope-mismatch condition — per the
official guidance, either the statement is misplaced, or the statement type named
(MENU/FOR/WHILE/FOREACH/CASE) was specified incorrectly.
- A
CONTINUE/EXITstatement used where the enclosing block isn't of the stated type, per the official guidance — the direct, only cause.
Solutions / Resolution
- Check whether the statement is misplaced, per the official guidance.
- Check whether the statement type was specified incorrectly, per the official guidance, and match it to the actual enclosing block.
Examples
An EXIT statement with a mismatched type
WHILE more_rows
EXIT FOR
-- -4488: this is a WHILE loop, not a FOR loop
END WHILE
Corrected
WHILE more_rows
EXIT WHILE
END WHILE
Diagnostic Checks
- Check the enclosing block's actual type, and match the
CONTINUE/EXITkeyword to it.
Related Errors / Related Topics
- -4314 through -4318 — the specific per-statement-type versions of this same
scope-mismatch condition, covering
MENU,FOREACH,WHILE,FOR, andCASErespectively.
A CONTINUE/EXIT statement doesn't match its enclosing block's actual type — correct the
statement type named.