Chapter Contents

Previous

Next
The COMPARE Procedure

Example 3: Comparing a Variable Multiple Times


Procedure features:
VAR statement
WITH statement
Data sets:
PROCLIB.ONE, PROCLIB.TWO .

This example compares one variable from the base data set with two variables in the comparison data set.


Program

libname proclib 'SAS-data-library';
options nodate pageno=1 linesize=80 pagesize=40;
 Note about code
proc compare base=proclib.one compare=proclib.two nosummary;


 Note about code
   var gr1 gr1;
   with gr1 gr2;
   title 'Comparison of One Variable with Two Variables';
run;


Output
The Value Comparison Results section shows the result of the comparison. [HTML Output]
 [Listing Output]


Chapter Contents

Previous

Next

Top of Page

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