sort by的那个variable的值一共有五位数,
请教大家怎么按照前两位sort呢?
如果是按照后三位呢?
另外,这个variable是字符型变量,需不需要转换成数值型的先呢?

|
楼主: 一眼瞬间
|
2444
9
一共五位数,按照前两位数sort怎么编程呢? |
|
讲师 50%
-
|
回帖推荐If the variable is num, it is better to operate it in num calculation.
data t1;
do i = 1 to 10;
x=int(10000+ranuni(12345)*90000);
x12=int(x/1e3);
x345=mod(x,1e3);
output;
end;
run;
proc print; run; [/quote]
Could you explain a little bit? Why is it better to operate it in num calculation? [/quote]
The numeric values have a meaningful scal ...
本帖被以下文库推荐
| ||
|
|
|
从来不需要想起 永远也不会忘记
|
|
| ||
| ||
| ||
加好友,备注cda京ICP备16021002号-2 京B2-20170662号
京公网安备 11010802022788号
论坛法律顾问:王进律师
知识产权保护声明
免责及隐私声明


