data grocery;
input Sector $ Manager $ Department $ Sales @@;
datalines;
se 1 np1 50 se 1 p1 100 se 1 np2 120 se 1 p2 80
se 2 np1 40 se 2 p1 300 se 2 np2 220 se 2 p2 70
nw 3 np1 60 nw 3 p1 600 nw 3 np2 420 nw 3 p2 30
nw 4 np1 45 nw 4 p1 250 nw 4 np2 230 nw 4 p2 73
nw 9 np1 45 nw 9 p1 205 nw 9 np2 420 nw 9 p2 76
sw 5 np1 53 sw 5 p1 130 sw 5 np2 120 sw 5 p2 50
sw 6 np1 40 sw 6 p1 350 sw 6 np2 225 sw 6 p2 80
ne 7 np1 90 ne 7 p1 190 ne 7 np2 420 ne 7 p2 86
ne 8 np1 200 ne 8 p1 300 ne 8 np2 420 ne 8 p2 125
;
proc format;
value $sctrfmt 'se' = 'Southeast'
'ne' = 'Northeast'
'nw' = 'Northwest'
'sw' = 'Southwest';
value $mgrfmt '1' = 'Smith' '2' = 'Jones'
'3' = 'Reveiz' '4' = 'Brown'
'5' = 'Taylor' '6' = 'Adams'
'7' = 'Alomar' '8' = 'Andrews'
'9' = 'Pelfrey';
value $deptfmt 'np1' = 'Paper'
'np2' = 'Canned'
'p2' = 'Produce';
run;
title;
ods listing close;
ods html file='c:\sas\summary.html';
proc report data=grocery headline headskip nowd spacing=7;
column sector manager department sales;
define sector/order format=$sctrfmt. width=25;
define manager/group format =$mgrfmt. width=7;
define department /group format =$deptfmt. width=22;
define sales /analysis format= dollar11.2 width=8 'sales/2017' left;
break after sector/ol ul summarize skip suppress;/*subtotal*/
rbreak after/ dol dul summarize;/*total*/
compute after;
sector='total sales';
endcomp;
title ' Report for Sectors in 2017';
run;
ods html close;
ods listing;
请问大神,为啥红体字部分(上面标注的)给sector一个新的value“total sales”没有显示出来 (只显示了前八位)???上面规定了sector width=25了已经,这个不起到作用吗?谢谢!!!