Specify two variables from the base data set to compare. The VAR and WITH statements specify the variables in the base data set to compare. This example compares GR1 with GR2. Because there is no comparison data set, the variables GR1 and GR2 must be in the base data set.


   var gr1;
   with gr2;
   title 'Comparison of Variables in the Same Data Set';
run;