Reaction SMILES: [C:1](CC(OCC)=O)(=O)[C:2]1C=CN=CC=1.[C:15]([OH:23])(=[O:22])[C:16]1[CH:21]=[CH:20][N:19]=[CH:18][CH:17]=1.C1(C)C=CC=CC=1.S(Cl)([Cl:33])=O>C(O)C.CN(C)C=O>[ClH:33].[C:15]([O:23][CH2:1][CH3:2])(=[O:22])[C:16]1[CH:21]=[CH:20][N:19]=[CH:18][CH:17]=1
Reactant: O=S(Cl)Cl
Reactant: O=C(O)c1ccncc1
Reactant: CCOC(=O)CC(=O)c1ccncc1
Solvent: CCO
Solvent: CN(C)C=O
Solvent: Cc1ccccc1
Product: CCOC(=O)c1ccncc1
Product: Cl
Temperature: 100 °C
Reaction time: 1.5 h
Yield: 96 %

Procedure:
The above intermediate ethyl isonicotinoylacetate is a known compound [Pinner, Chem. Ber. 34, 4249 (1901)] and can be prepared by various means, for example, from isonicotinic acid by the following procedure: To a stirred suspension containing 123 g. of isonicotinic acid in 750 ml. of toluene was added 131 g. of thionyl chloride followed by the addition of 1 ml. of dimethylformamide. The mixture was heated to 100° C. for 90 minutes, cooled to 90° C., and 80 ml. of absolute ethanol was added dropwise very carefully to the stirred reaction mixture. The temperature was then brought back up to 100° C. and kept there for 90 minutes and then chilled in an ice bath. The separated precipitate was collected, washed with ether and dried in a vacuum oven at 70° C for 2 hours to yield 180 g. (96% yield) of ethyl isonicotinate hydrochloride, m.p. 166°-168° C. Since this ester hydrochloride tends to sublime in the vacuum oven, it is not necessary to dry the product at this stage and the base can be liberated from the wet product. The ethyl isonicotinate hydrochloride was dissolved in 1 liter of cold water, the solution covered with ether and the mixture cooled in an ice bath. Then 90 g. of sodium bicarbonate was added carefully to the stirred mixture. The layers were separated, and the aqueous phase was extracted twice with ether and the extract combined with the original ether layer. The combined ether solutions were dried over anhydrous magnesium sulfate and concentrated in vacuo to remove the ether, thereby yielding 136 g. of ethyl isonicotinate, nD25 =1.4940, which distilled at 97°-98° C. and 10-11 mm. to yield 129 g. of said compound, nD25 =1.4975. To 4 liters of refluxing ethanol was added 115 g. of sodium so as to maintain steady reflux. The sodium ethoxide solution was concentrated under vacuum to a white powder. To this was added a solution of 498 g. of ethyl isonicotinate and 580 g. of ethyl acetate in one portion. Solution was complete in 30 minutes and the reaction mixture was refluxed for 20 hours. The reddish-orange solution was poured into 5 liters of water and washed twice with ether. The aqueous layer was then acidified with acetic acid and the oil that separated was collected. The aqueous layer was saturated with sodium chloride and the mixture was extracted with ethyl acetate. These extracts were combined with the oil, the solution was dried, treated with decolorizing charcoal and filtered; and, the filtrate was concentrated to give 582 g. of red oil which crystallized on cooling. This oil was dissolved in approximately 400 ml. of warm methanol and 1 liter of water was added. The mixture was cooled to below 0° C. and the separated product was collected, thereby yielding 490 g. of ethyl isonicotinoylacetate, m.p. 59°-61° C. Concentration of the mother liquor gave an additional 15 g., m.p. 58°-60° C., for a total yield of 505 g. (80% yield).