If the defendant will not consent to such amendment of an indictment, the prosecution may be dismissed at any time before the jury retires as to the count in the indictment to which the variance applies, and the court may order another indictment to be preferred at a subsequent time, in which case an entry of record must be made to the effect following: