如何使用proc compare比较两个数据集

来源:互联网 发布:linux c rpc通信 编辑:程序博客网 时间:2024/05/16 12:30
如何使用proc compare比较两个数据集
data one;
input student $ gr1 gr2;
format gr1 5.2;
datalines;
1000 64 87
1001 65 88
1002 66 89
;
run;

data two;
input student $ gr1 gr2;
format gr1 5.2;
datalines;
1000 64 87
1001 65 88
1002 66 89
;
run;

options nodate pageno=1 linesize=80 pagesize=40;
title 'The SAS System';
proc compare base=one compare=two;
run;

data two;
input student $ gr1 gr2;
format gr1 5.2;
datalines;
1000 64 87
1001 65 96
1002 66 92
;
run;
options nodate pageno=1 linesize=80 pagesize=40;
title 'The SAS System';
proc compare base=one compare=two;
run;