PDR4007S
Section, Line number, Column number: An ITERATE FOR statement was encountered outside of a FOR loop.
What happened: The rule compiler found an ITERATE FOR statement outside of a FOR loop.
What to do: Remove the ITERATE FOR statement or check to see if it needs to be an ITERATE DO statement.