There is a missing keyword in the FOR ... ENDFOR or DO CASE ... ENDCASE command structure (Error 1213)
For more information, see the
FOR ... ENDFOR
and
DO CASE ... ENDCASE
topics.