I usually use the command -codebook- to undertand the number of unique values of a given variable. I would like now to know the number of different values for a given variable within another variable. Is there anyway I can use codebook together with bys: ?

Many thanks
Paula