SAS 对列重命名

View Code
 1 data trans;
 2     input Answer : $5.;
 3         Answer = translate(Answer,'ABCDE','12345');
 4  datalines;
 5  14325
 6  AB123
 7  51492 
 8 ; 
 9 
10  run;
11 title "Computing a New Variable";
12  proc report data=trans nowd;
13     column Answer;
14     define Answer / display "Patient Number" width=6;
15    
16      endcomp;
17  run;
Patient Number
ADCBE
ABABC
EAD9B
posted @ 2013-04-25 18:14  xinyonde  阅读(1162)  评论(0编辑  收藏  举报