- data bbb1;
- set aaa1;
- set aaa1 (rename=(var=var_ x1=x1_ y=y_) firstobs=2) end=last;
- if missing(x1) and ^missing(x1_) then tag=_n_;
- output;
- if last then do;
- var=var_;
- x1 = x1_;
- y = y_; output;
- end; drop var_ x1_ y_;
- run;
- data bbb2;
- set aaa2;
- set aaa2 (rename=(var=var_ x1=x1_) firstobs=2) end=last;
- length macro_tag $50;
- retain macro_tag;
- if missing(var) and ^missing(var_) then do;
- tag = _n_;
- macro_tag = catx(' ', macro_tag, put(tag, 2.));
- end;
- output;
- if last then do;
- var = var_;
- x1 = x1_;
- call symput('macro_tag', macro_tag); output;
- end; drop var_ x1_;
- run;


雷达卡



京公网安备 11010802022788号







