This example creates an output data set that contains
summary statistics for the numeric variables that are compared.
libname proclib 'SAS-data-library';
options nodate pageno=1 linesize=80 pagesize=40;
| proc sort data=proclib.emp95 out=emp95_byidnum;
by idnum;
run;
proc sort data=proclib.emp96 out=emp96_byidnum;
by idnum;
run; |
| proc compare base=emp95_byidnum compare=emp96_byidnum
outstats=diffstat noprint;
id idnum;
run; |
| proc print data=diffstat noobs;
title 'The DIFFSTAT Data Set';
run; |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.