The keyword FOR was not found in the DECLARE CURSOR statement.
Insert the keyword FOR into the DECLARE CURSOR statement.