Hi

I wanted to store the unique values of a variable schoolid_2 in a local macro. So ran the following:

levelsof schoolid_2 , local(unique)
The above command runs but now when I try to access the elements in the local macro through the following code:

di `unique'
it doesn't show anything, although, codebook schoolid_2 shows 50 unique values.


I am unsure why I am unable to access the local macro.