数据导入过程省略,直接用sql过程的话,可以这样写:
proc sql noprint;
create table newdata as
select distinct compress(a.code||b.indyear) as newcode
from source as b, source as a
;
quit;
newcode即是你需要的结果
数据导入过程省略,直接用sql过程的话,可以这样写:
proc sql noprint;
create table newdata as
select distinct compress(a.code||b.indyear) as newcode
from source as b, source as a
;
quit;