I have a variable that lists multiple categories, separated by a comma. I would like to create a list of the existing categories across all observations within the variable:

institution
a,b,c
b,e,f
a,c,e,f
a,d
b

institutions in dataset:
a,b,c,d,e,f

Thanks!