f*******6 发帖数: 4 | 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 | f**y 发帖数: 138 | 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; |
|