data test; /*数据步新建数据*/
input x y;
cards;
10 12
11 14
13 16
;
run;
data test; /*数据步新建变量*/
set test;
z=x*y;
run;
proc print data=test; /*打印出含新增变量的数据集*/
run;
proc append base=test data=test2; /*数据观测的添加*/
run;
proc print data=test;
run;
data test; /*数据步新建数据*/
input x y;
cards;
10 12
11 14
13 16
;
run;
data test; /*数据步新建变量*/
set test;
z=x*y;
run;
proc print data=test; /*打印出含新增变量的数据集*/
run;
proc append base=test data=test2; /*数据观测的添加*/
run;
proc print data=test;
run;