Uniqueness in data

The SAS-macro below will tell you if a variable in a dataset is unique.