Synopsis
This is an error in the way the REXX script is written. There is a DO/SELECT without a subsequent, matching END keyword, or a THEN/ELSE without some expression after it.
Cause
You put a DO or SELECT keyword without a corresponding END keyword after it.
Cure
DO or SELECT can't be used without a subsequent END. Make sure that there is one END keyword after every SELECT or DO keyword.
Cause
You tried to name a variable do or select in a place where the DO or SELECT keywords are illegal.
Cure
In certain instructions, you cannot use the (unquoted) REXX keywords DO or SELECT for a variable name.
Cause
You put an ELSE or THEN keyword, but wanted no particular action taken so you left it blank after the ELSE/THEN.
Cure
You should use the NOP keyword if you want no particular action taken.