You cannot specify PERFORM in a WHENEVER statement. Delete the statement, or substitute a valid option.