FriedEgg: I suspect you're right. It very well may take a long time. I could create a Macro loop and cycle through all of the 20 x 1400 variable combinations, testing each of the 20 variables against every one of the 1400 variables. I could duplicate the entry of the variable I want to compare 1400 times in the VAR statement, and using PROC Contents, pass a macro variable containing the variable names from the 1400 variable dataset, to the WITH statement: From the SUGI paper: http://analytics.ncsu.edu/sesug/2003/TU01-Reiss.pdf The author suggests the following code for testing one variable against several: proc compare base = base-data-set compare = compare-data-set nosummary ; var base-variable base-variable; with compare-variable-#1 compare-variable-#2; title1 'Compare One Variable (base-variable)’; title2 ‘with Two Variables (compare-variable-#1 and compare-variable-#2)'; run;
... View more