GOTO, TAG and CABxx operations are not allowed in a MONITOR block.
20
Cause . . . . . : It is not valid to branch in or out of a MONITOR block. A MONITOR block consists of the statements between the MONITOR operation and the first ON-ERROR operation for the MONITOR group. The branch operation is ignored.
Recovery . . . : Use other logic to control the flow within the MONITOR block. Compile again.