楼主: pinggu2688
13204 12

[问答] 求助如何批量修改变量的label [推广有奖]

11
denver 发表于 2011-9-7 21:27:47
zhangzachary 发表于 2011-9-7 15:55
when more over 1000000 observations, excel doesn't work... if there is 10 observations, we can cal ...
You can save xls file as csv file so that you can deal with over 100 thousand  observations
Denver大家一起读Paper系列索引贴:
https://bbs.pinggu.org/thread-1430892-1-1.html

12
sxlion 发表于 2011-9-9 01:20:28
看贴 https://bbs.pinggu.org/thread-1083423-1-1.html

当然,只要你成批的变量名和新的label的其他格式数据都行,参照上面很easy。

13
lyfyb99 在职认证  发表于 2011-9-10 20:46:35
如果要修改的变量名和label已经存在于某个数据文件temp中,假设相应的变量为name和label,可用下面的方法:
proc sql;
select strip(name)||'='||quote(strip(label)) into :labvar separated by '   '
from temp;
quit;

data aa;
set aa;
label &labvar;
run;

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-30 23:01