I am wondering if there is a way to ask Stata to produce a list of a variables unique values. For example, if I have a variable year that has ranges from 1750 to 2000, is there a way to ask Stata to produce a simple list of the variable's unique values in the output window? So, it would look like "1750 1765 1766 1770 , , , 1996 1997 1998 1999 2000." I want to copy paste this list into another document, so I do not want to generate the unique values using tab or list. Any ideas?