If you can calculate a distance matrix (a dataset of type=distance) between your objects (observations or variables), then you can use proc cluster to do the hierarchical clustering. Check the data= option in the proc cluster statement doc.
... View more