LBLSCOPE
550
Label label out of scope
A “code jump” (CALL, GOTO, I/O error list, EXIT label, READS(,,EOF), ACCEPT(,,EOF), GETS(,,EOF), PUTS(,,EOF), RECV(,NOMESSAGE), or WRITES(,,FULL)) was made to a higher scope (in other words, above the current scope) in one of the following:
-
A TRY-CATCH-FINALLY statement
-
A BEGIN-END block with a DATA statement containing an object variable definition
-
FOREACH code that contains a code jump to a higher level
The best way to resolve this error is to move the code in the label to a routine or method and then call the routine or method.