Hi everyone,

This might be an easy question, but I just can't get to the right command.

I have two string variables that I need to get an overview of. In one variable I have around 150 unique treatment codes (on ~100,000 patients) and in the other variable I have the label for each treatment code.
What I need is an output containing two columns with each treatment code appearing only once in the left column and the label for that treatment code in the right column. If the frequency and percentage for each of the codes could be included that would be great (just like in a regular tab command with only one variable).

I can't install additional programs.

Thank you for your help.