Chapter Contents

Previous

Next
The COMPARE Procedure

Example 2: Comparing Variables in Different Data Sets


Procedure features:
PROC COMPARE statement option
NOSUMMARY
VAR statement
WITH statement
Data sets:
PROCLIB.ONE, PROCLIB.TWO .

This example compares a variable from the base data set with a variable in the comparison data set. All summary reports are suppressed.


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;
   with gr2;
   title 'Comparison of Variables in Different Data Sets';
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.