各位大大求助:
| id | content |
| 2015-01 | a1 |
| 2015-01 | b1 |
| 2015-01 | c1 |
| 2015-02 | a2 |
| 2015-02 | b2 |
| 2015-02 | c2 |
| id1 | content1 | id2 | content2 |
| 2015-01 | a1 | 2015-02 | a2 |
| 2015-01 | b1 | 2015-02 | b2 |
| 2015-01 | c1 | 2015-02 | c2 |
求助各位帮忙,感谢!!

|
楼主: Wo_si_鍕
|
1332
2
关于转置处理数据 |
|
大专生 53%
-
|
回帖推荐proc sort data=test;
by id;
run;
data test1;
set test;
by id;
if first.id then order=0;
order+1;
run;
proc sort data=test1;
by order id;
run;
data test2;
set test1 end=last;
by order;
if first.order then num=0;
num+1;
if _n_=1 then call execute('data wanted;');
call execute('id'||cats(num)||'='||quote(strip(id))||';content'||cats(num)||'='||quote(strip(content) ...
| ||||||||||||||||||||||||||||||||
|
|
| ||
加好友,备注cda京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明


