
181Useful SAS
®
Procedures
A01 || 154.7000 154.3000 -0.4000 -0.2586
A02 || 150.2000 150.3000 0.1000 0.0666
You do not need the COMPARE= option to compare variables within
the same data set. Program 10.6 compares two variables, WEIGHT1 and
WEIGHT2, within the COMPARE1 data set.
Program 10.6:
title 'Compare variables with different variable names in the
same data sets';
proc compare base = compare1 brief;
var weight1;
with weight2;
run;
Output from Program 10.6:
Compare variables with different variable names in the
samedata sets
The COMPARE Procedure
Comparisons of variables in WORK.COMPARE1
(Method = EXACT)
NOTE: Values of the following ...