Description

label1
Specifies the label for the GOTO statement. The label name cannot be the same as the routine name or another label within the same scope. For more information, see Handling errors and warnings.
label2
Specifies the labelled statement where processing is to continue. The labelled statement and the GOTO statement must both be in the same scope:

If label2 is not defined within a scope that the GOTO statement can reach, an error is returned.