EQA1766E The target of the GOTO command is in an inactive block.

Explanation

You are trying to GOTO a block that is not active. If it is inactive it doesn't have a register save area, base registers, and so on (all of the mechanics established that would allow the procedure to run).