ERROR | FOR clause not allowed on this statement |
CAUSE | A FOR clause was used with a SELECT, LOB, or DEALLOCATE DESCRIPTOR statement. A FOR clause cannot be used with these statements. In the case of a SELECT statement, data returned from the last loop in the execution of the SELECT would overwrite data returned in a previous loop. |
ACTION | Remove the FOR clause from the statement. Use a host language construct to iteratively execute the statement. |