[C:1](OCC)(=O)[CH2:2][C:3]([CH3:5])=O.[C:10]([CH2:12][C:13]([NH2:15])=O)#[N:11].[OH-]>>[C:10]([CH:12]1[C:3]([CH3:5])=[CH:2][CH2:1][NH:15][CH2:13]1)#[N:11]reacting ethyl acetoacetate with cyanoacetamide and a hydroxide of an alkali metal, in the presence of an organic solvent, at a temperature of from 60° C. to 80° C., for 1 to 4 hours, to produce 3-cyano-2,6-dihydro-4-methylpyridine;