菜单

set 纵向合并数据集

data grade1; /*数据集grade1创建*/
input number math chinese;
cards;
1001 95 98
1002 87 89
1003 78 67
;
run;
data grade2; /*数据集grade2创建*/
input number math;
cards;
1004 89
1005 87
;
run;
data grade;
set grade1 grade2; /*合并数据集grade1和grade2*/
run;
proc print data=grade; /*输出窗口打印出横向连接后的数据集*/
run;