SAS Updating Data Sets
To correct errors in large data sets the update statement can be used:
data new;
update old changes;
by indexvar;
run;
Here changes is a data set containing the corrections to be made to the data set old. Records in old and changes with the same value of the variable indexvar are updated using the information in changes. Missing values in the data set changes do not overwrite data in old. 公卫论坛
To concatenate (join) two (or more) data sets together the set statement can be used.
data new;
update old changes;
by indexvar;
run;
Here changes is a data set containing the corrections to be made to the data set old. Records in old and changes with the same value of the variable indexvar are updated using the information in changes. Missing values in the data set changes do not overwrite data in old. 公卫论坛
To concatenate (join) two (or more) data sets together the set statement can be used.
附件列表
词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。
如果您认为本词条还有待完善,请 编辑