[S:1]1[CH2:6][CH2:5][CH2:4][S:3][CH:2]1[C:7]([O:9][CH2:10]C)=[O:8].Cl>CO>[CH3:10][O:9][C:7]([CH:2]1[S:3][CH2:4][CH2:5][CH2:6][S:1]1)=[O:8]Dissolve 192 g (1 mole) of ethyl 1,3-dithiane-2-carboxylate in 1 L of methanol and add 5 ml of concentrated hydrochloric acid. Stir at room temperature for 18 hours. Neutralize the mixture with 1 N sodium hydroxide and remove the methanol under reduced pressure. Take up the residue in 1 L of ether, wash with water, dry over magnesium sulfate and evaporate. Distil the residue under reduced pressure to obtain methyl-1,3-dithiane-2-carboxylate.