SAS中文论坛

标题: 请教:提取format格式中的值 [打印本页]

作者: shiyiming    时间: 2010-11-18 11:33
标题: 请教:提取format格式中的值
例如数据集中存在变量a的值为1,2,3,变量a的proc format格式为:1-轻,2-中,3-重,希望提取format中的值并生成数据集。
期望得到的数据集格式:
a        b
1        轻
2        中
3        重

谢谢各位!!!
作者: shiyiming    时间: 2010-11-18 11:40
标题: Re: 请教:提取format格式中的值
这个应该不难。
b =put(a, FormatAname.);
作者: shiyiming    时间: 2010-11-18 22:25
标题: Re: 请教:提取format格式中的值
谢谢!!!我的问题已解决。




欢迎光临 SAS中文论坛 (https://mysas.net/forum/) Powered by Discuz! X3.2