My reaction is amide to nitrile. I used thionyl chloride for the conversion.And during the neutralization of the medium it takes so much of base and still it's acidic. Am I doing it correclyt?
Thionyl chloride (SOCl2) reacts (exothermically) with water: (i) SOCl2 + H2O → 2 HCl + SO2. It can be distilled off from water-free reaction mixture under vacuum, say, by around 40 ºC. As guideline for the required level of vacuum, I have estimated the vapour pressure of SOCl2 as 29 kPa at 40 ºC. You may consider bubbling the non-condensed SOCl2 vapour trough a trap containing cold (or icy) alkaline brine (e.g. NaOH aq.), where both SO2 and HCl can quantitatively dissolve and be neutralized after being generated by reaction (i). I would suggest to further protect the vacuum pump (e.g. by a filtering system with good adsorption capability). Alternatively, we could dispense such additional protection by substituting a water aspirator for the vacuum pump, as that seems enough to attain a sufficient level of vacuum.