data eg11_6; input x y @@; cards; 2.3 3.7 1.7 1.2 4.4 2.2 .5 1.7 ; run; proc freq data=eg11_6; tables x*y; test scorr; exact scorr; ods select SpearmanCorr SpearmanCorrTest; run;