Dimethylformamide for polymer production