data student; /*数据集的新建*/
input number sex$ grade;
cards;
1001 男 78
1002 女 89
1003 男 76
1004 男 83
1005 女 92
;
run;
data student2; /*更新数据集的新建*/
input number sex$ grade;
cards;
1001 女 .
1003 . 78
;
run;
data studentnew;
update student student2; /*数据集的更新*/
by number;
run;
data student;
modify student student2; /*数据集的更新*/
by number;
run;
proc print data=studentnew;
run;
proc print data=student;
run;