[NH2:1][CH2:2][CH2:3][CH2:4][CH2:5][CH2:6][C:7]([OH:9])=[O:8].NCCCCCC(N)=[O:17]>>[C:7]1(=[O:9])[NH:1][CH2:2][CH2:3][CH2:4][CH2:5][CH2:6]1.[CH:2]([CH2:3][CH2:4][CH2:5][CH2:6][C:7]([OH:9])=[O:8])=[O:17]Process according to claim 1, wherein the starting mixture is an aqueous mixture containing 6-aminocaproic acid, 6-aminocaproamide, oligomers thereof and ε-caprolactam which aqueous mixture is obtained through reductive amination of 5-formylvaleric acid or its ester.