Chapter Contents

Previous

Next
The COMPARE Procedure

Example 7: Creating an Output Data Set of Statistics (OUTSTATS=)


Procedure features:
PROC COMPARE statement options:
NOPRINT
OUTSTATS=
Data sets: PROCLIB.EMP95, PROCLIB.EMP96

This example creates an output data set that contains summary statistics for the numeric variables that are compared.


Program

libname proclib 'SAS-data-library';
options nodate pageno=1 linesize=80 pagesize=40;
 Note about code
proc sort data=proclib.emp95 out=emp95_byidnum;
   by idnum;
run;

proc sort data=proclib.emp96 out=emp96_byidnum;
   by idnum;
run;
 Note about code
proc compare base=emp95_byidnum compare=emp96_byidnum
             outstats=diffstat noprint;
   id idnum;
run;


 Note about code
proc print data=diffstat noobs;
   title 'The DIFFSTAT Data Set';
run;


Output
The variables are described in Output Statistics Data Set (OUTSTATS=) . [HTML Output]
 [Listing Output]


Chapter Contents

Previous

Next

Top of Page

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