Product Site

C.1.8. Error 10 - Unexpected or unmatched END.

Explanation:

More ENDs were found in your program than DO, LOOP, or SELECT instructions, or the ENDs did not match the DO, LOOP, or SELECT instructions.

Another cause for this message is placing an END immediately after a THEN or ELSE subkeyword or specifying a name on the END keyword that does not match the name following DO or LOOP. Putting the name of the control variable on ENDs that close repetitive loops can also help locate this kind of error.

The associated subcodes are:
001

END has no corresponding DO, LOOP, or SELECT.
002

Symbol following END ("symbol") must match block specification name ("name") on line line_number or be omitted.
003

END corresponding to block on line symbol must not have a symbol following it because there is no LABEL or control variable; found "line_number".
004

Symbol following END ("symbol") must match LABEL of SELECT specification ("name") on line line_number or be omitted.
005

END must not immediately follow THEN.
006

END must not immediately follow ELSE.
007

END corresponding to SELECT on line symbol must not have a symbol following it because there is no LABEL; found "line_number".