Intersect - Function Summary
Create a new value that is the intersection of the two arguments.
intersect ser1 ser2
ser1 - first set (must be: series bitset)
ser2 - second set (must be: series bitset)
/case - Uses case-sensitive comparison.
/skip - Treat the series as records of fixed size
size - The size argument. (must be: integer)
Returns all elements within two blocks or series that exist in both.
To obtain a unique set (to remove duplicate values) you can use UNIQUE.
Note that performing this function over very large data sets can be CPU intensive.