REDUCESET,<var>,[sorttype]
This command will sort all of the elements in the variable list and remove duplicate values in the variable list. All values in the variable list are stored as character strings. The order of numbers when sorted lexicographically is not the same as the numeric order of the same set. If a numerically sorted list is needed, the sorttype argument will convert the elements of the variable list before the set reduction is implemented. The numerically sorted variable list will then be stored as character strings after the operation.
Note(s): Using the INT and FLOAT sorttype for variable list that have non-numeric data elements may cause errors or inconsistent sorting behavior.