LABEL
The LABEL instruction defines a label within the OCL program that is the target of a GOTO instruction.
Syntax
LABEL label_name
Example:
IF &var1 = 'OK' then GOTO esci
⋮
LABEL esci
⋮
LABEL esci2Note: If OCL processes a LABEL instruction without branching
to it in response to a GOTO instruction, the return code is the highest
set by any of the OCL instructions.
The LABEL instruction returns one of the following return codes:
- LASTRC
- Highest return code returned by the program routines if OCL processed the label without branching to it
- CC = 8
- Label name not specified