[Cl:1][C:2]1[C:7]([C:8]([OH:10])=[O:9])=[CH:6][N:5]=[CH:4][CH:3]=1.[OH-].[Na+].I[CH2:14][CH3:15]>CN(C)P(=O)(N(C)C)N(C)C.O>[Cl:1][C:2]1[C:7]([C:8]([O:10][CH2:14][CH3:15])=[O:9])=[CH:6][N:5]=[CH:4][CH:3]=1To a solution of 4-chloronicotinic acid (7.03 g, 44.6 mmol) in 100 mL of hexamethylphosphoric triamide (HMPA) was added a solution of 5.5 N sodium hydroxide (13 mL) at 0° C. Then iodoethane (27.8 g, 179 mmol) was added into the reaction mixture at 0° C. over 1 h, and stirring was continued for a further 1 h at room temperature. The mixture was diluted with 250 mL of water, and then extracted three times with ether. The ethereal extracts were combined, washed three times with water, then dried (MgSO4), filtered, and the solvent was evaporated to give ethyl 4-chloronicotinate (6.21 g) as a brown oily residue, which was used for the next step without further purification.