Chapter Contents

Previous

Next
The COMPARE Procedure

Example 4: Comparing Variables That Are in the Same Data Set


Procedure features:
PROC COMPARE statement options
ALLSTATS
BRIEFSUMMARY
VAR statement
WITH statement
Data set:
PROCLIB.ONE .

This example shows that PROC COMPARE can compare two variables that are in the same data set.


Program

libname proclib 'SAS-data-library';
options nodate pageno=1 linesize=80 pagesize=40;


 Note about code
proc compare base=proclib.one allstats briefsummary;


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


Output
[HTML Output]  [Listing Output]


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.