作者:多米音乐_34026248 | 来源:互联网 | 2023-10-11 17:06
1 proc format;
2 value feegroup
3 low-500='0~500'
4 501-1000='500~1000'
5 1001-5000='1000~5000'
6 5001-high='>5000';
7 run;
8 proc means data=guanhui.buedetail_same_sum_fee;
9 var serv_number_num;
10 class sumfee;
11 format sumfee feegroup.;
12 run;
注意:
1、proc format 后value后面不加分号,直到组别分完。
2、在means后format的数据类型中需要加上“.”.
3、proc means的选项(sum n min max)等放在
1 proc means data=guanhui.buedetail_same_sum_fee sum;
2 var serv_number_num;
3 class sumfee;
4 format sumfee feegroup.;
5 run;