I’m trying to set up a branching statement in a Macropump.
Doesn't answer your question, but you can use an ELSE with the IF to remove the need for GOTO. Similarly, SELECT, CASE could be used.
I can't be bothered to look at the Enable documents just now, but wonder if you need a number in the label name (label1 rather than just label)?
OK, now been bothered. Have a look at p.85, the GOTO statement: "Branches unconditionally and without return to a specified label in a procedure." I read that as meaning it is necessary to have the GOTO and the label between your SUB and END SUB statements.