avatar
请教SAS问题!# Database - 数据库
f*6
1
希望各位SAS 的牛人,帮忙解决下列SAS的问题。万分感谢!!!
1.
a) There is a large file with an ID-Key field and a TYPE field. Both fields
are characters. Also, there are extra fields in addition to those two.
The extra fields are all numeric. The content of the TYPE field is such
that each record contains the name of one and only one of those extra
numeric fields.
You are asked to do the following:
For each record, only output the ID-Key, TYPE and the numeric field that
bears the name of the content of the TYPE reco
avatar
f*y
2
Your question is too long, here is the first point:
data A(keep=ID_Key type A) B(keep=ID_Key type B);
set input;
if type = 'A' then output A;
else if type = 'B' then output B;
run;
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。