SMV #36: phase one of pivot command creation.  Created function to extract all unique column names for the pivot.