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 the END keyword is illegal.
Cure
In certain instructions, you cannot use the (unquoted) REXX keyword END for a variable name.