Oracle Message PCC-00056 - FOR clause not allowed on SELECT statement at line number in file string.

ERRORFOR clause not allowed on SELECT statement at line number in file string.
CAUSEA FOR clause was used with a SELECT statement. This is not allowed as data returned from the last loop in the execution of the SELECT overwrites data returned in a previous loop.
ACTIONRemove the FOR clause from the SELECT statement and use a host- language construct to iteratively execute the SELECT statement.