Cl.[CH3:2][N:3]([CH2:5][C:6]1[C:7]([N+:15]([O-:17])=[O:16])=[C:8]([CH:12]=[CH:13][CH:14]=1)[C:9](O)=[O:10])[CH3:4].S(Cl)([Cl:20])=O>>[CH3:2][N:3]([CH2:5][C:6]1[C:7]([N+:15]([O-:17])=[O:16])=[C:8]([CH:12]=[CH:13][CH:14]=1)[C:9]([Cl:20])=[O:10])[CH3:4]The mixture of 3-dimethylaminomethyl-2-nitrobenzoic acid hydrochloride (0.1 g) and thionylchloride (5 mL) was stirred at 80° C. for 3 hours. The solvent was removed and the residue was dried to obtain 3-dimethylamino methyl-2-nitrobenzoyl chloride.