The quinoline IV is converted into the quinoline V by first treatment with an oxidizing reagent such as m-chloroperoxybenzoic acid in an organic solvent followed by reaction of the intermediate N-oxide with an acylating reagent such as dialkylcarbamyl chloride, and a cyanating agent such as trimethylsilyl cyanide.