PDR4017S

Section, Line number, Column number: Invalid start of FOR statement.

What happened: An error was encountered in the start of a FOR statement: FOR %%variable = start TO end [STEP step].

What to do: Inspect the first line of your FOR loop for invalid syntax.