Integrated separation and preparation process comprising a gas separation process wherein a first component is separated from a mixture of components by diffusion of the first component through a porous partition into a stream of sweeping component; and a preparation process wherein the sweeping component is used as feed. Separation unit and device for use in such a process and industrial set-up for use in such a process.