Chapter Contents

Previous

Next
The COMPARE Procedure

Example 1: Producing a Complete Report of the Differences


Procedure features:
PROC COMPARE statement options

BASE=
PRINTALL
COMPARE=

Data sets:
PROCLIB.ONE, PROCLIB.TWO

This example shows the most complete report that PROC COMPARE produces as procedure output.


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 printall;
   title 'Comparing Two Data Sets: Full Report';
run;


Output
A ✓ in the output marks information that is in the full report but not in the default report. The additional information includes a listing of variables found in one data set but not the other, a listing of observations found in one data set but not the other, a listing of variables with all equal values, and summary statistics. For an explanation of the statistics, see Table of Summary Statistics . [HTML Output]
 [Listing Output]


Chapter Contents

Previous

Next

Top of Page

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