// My idea was to create a generic macro ... the [MR set] data must be cleaned of double codes.//
My macro !KO_REGMRC performs editing of a Categorical Multiple Response variables, including the task of cleaning away response duplicates. If that is what you meant to do.
The macro is downloadable in "Multiple response tools" collection on my page
https://www.spsstools.net/en/KO-spssmacrosor
https://www.spsstools.net/ru/KO-spssmacros (russian page with russian-localized macros)