LABEL
The LABEL statement defines a statement label, marking the next statement as
one to which the WHENEVER statement or the GOTO statement can transfer program
control.
label identifier is a statement label, with a colon ( : ) as the last character.
The LABEL statement indicates where to transfer control of program execution
within the same program block. Upon executing a GOTO or WHENEVER statement that
references the label identifier, 4GL jumps to the statement immediately
following the LABEL statement, skipping any intervening statements.
The following restrictions apply to the LABEL statement:
The label identifier must be unique within its program block.
To jump to a label, the GOTO or WHENEVER statement must use the same label
identifier as the LABEL statement above the desired statement.
The GOTO and LABEL (or the WHENEVER and LABEL) statements must both be in the
same MAIN, FUNCTION, or REPORT program block.
References
GOTO
WHENEVER