Synopsis
This is an error in the way the REXX script is written. Some END keyword appears where it should not be.
Cause
You put an END keyword without a corresponding DO or SELECT keyword.
Cure
END can't be used without a preceding SELECT or DO. Make sure that there is one SELECT or DO keyword before every END.
Cause
You tried to name a variable end in a place where an END keyword would be illegal.
Cure
In certain instructions, you cannot use the (unquoted) REXX keyword END for a variable name.
Cause
You specified the name of a variable after the END keyword, but there is no preceding DO keyword which uses that variable.
Cure
If you specify a variable name after END, make sure that variable is used in some expression immediately after a preceding DO keyword. For example:
DO myVar = 1 TO 5 END myVar