SAS中文论坛
标题:
自定义格式的问题,帮忙看看这段程序
[打印本页]
作者:
shiyiming
时间:
2007-3-12 12:19
标题:
自定义格式的问题,帮忙看看这段程序
我的程序亦运行就出错,前一段设定自定义格式是成功的,可是后面一引用就有问题。我是出学者,怎么也看不出来,请帮忙,谢谢!
libname yongjun 'E:\SASwork\SAS LEARNING\Practice file';
Proc format lib=yongjun fmtlib;
value wthfmt
0-<1.5='thin'
1.5-<2='oevrweight'
2-HIGH='Obese';
run;
libname yongjun 'E:\SASwork\SAS LEARNING\Practice file';
data yongjun.sort_bysex;
set yongjun.class;
wth=weight/height;
format wth wthfmt; 这句老是出问题,说找不到WTHFMT。
run;
作者:
shiyiming
时间:
2007-3-13 11:01
标题:
FORMAT
format wth wthfmt.
wthfmt后面应该有个.,表示格式的吧.
作者:
shiyiming
时间:
2007-3-13 13:34
标题:
对不起,我的原程序上有点的。
课还是不行!
作者:
shiyiming
时间:
2007-3-14 20:07
标题:
to cnadam
加options fmtsearch=(yongjun);在libname yongjun 'E:\SASwork\SAS LEARNING\Practice file';后面,再试试看。
作者:
shiyiming
时间:
2007-3-15 12:05
标题:
try this
libname yongjun 'E:\SASwork\SAS LEARNING\Practice file';
Proc format;
value wthfmt
0-<1.5='thin'
1.5-<2='oevrweight'
2-HIGH='Obese';
run;
data yongjun.sort_bysex;
set yongjun.class;
wth=weight/height;
format wth wthfmt.;
run;
/*Should be OK. By the way can you send you error message from log fine?*/
作者:
shiyiming
时间:
2007-3-16 12:02
标题:
谢谢,现在好了。
谢谢
欢迎光临 SAS中文论坛 (https://mysas.net/forum/)
Powered by Discuz! X3.2