I have chosen to ask this question via an example as I think it most clearly illustrates what I am trying to do.
Say I have the following table:
mem
depending on your version of db2, the LISTAGG() function may be available to you. i think it is included in any db2 version after 9.7.
example:
select member, number, listagg(number,',') as new_column from tablename group by member