Hi:
What variable are you summarizing at the break??? Can you show what your data looks like by making some dummy data:
[pre]
department_id, department_name, provider_name, pts
111, "Long Department Name1", "Dr. Jones", 100
111, "Long Department Name1", "Dr. Keller", 100
222, "Long Department Name2", "Dr. Lucas", 100
222, "Long Department Name2", "Dr. Meyer", 100
[/pre]
For example, it looks like PTS is the numeric variable, however you are currently treating it as an ORDER variable, so no summarizing would be done. Is there another numeric variable that you are summarizing? If you use the test data set shown above, the resulting output does not make sense. Having BREAK BEFORE PTS doesn't make sense to me. Perhaps your real data makes more sense.
FYI -- since your variable widths were going to give you issues in the LISTING window (where a line size can only be 256 and your variable widths added up to more than that), I use ODS HTML for the output file and took out options like headline, headskip, OL, DOL, and skip that are ignored by the LISTING destination.
For more information about posting code and maintaining code indenting or showing how you want a final report to be lined up, refer to this forum posting:
http://support.sas.com/forums/thread.jspa?messageID=27609毙
cynthia
[pre]
data work.xxx;
length department_name $120 prov_name $100;
infile datalines dsd dlm=',';
input department_id department_name $ prov_name $ pts;
return;
datalines;
111, "Long Department Name1", "Dr. Jones", 100
111, "Long Department Name1", "Dr. Keller", 100
222, "Long Department Name2", "Dr. Lucas", 100
222, "Long Department Name2", "Dr. Meyer", 100
;
run;
options pageno=1 nodate center;
ods listing close;
ods html file='c:\temp\testreport.html' style=sasweb;
proc report data=work.xxx missing center nowd
split='^' ;
title1 '1) Your Original Program';
columns department_id department_name prov_name pts ;
define department_id/order order=internal format = BEST11. 'Department Id';
define department_name/order order=internal format = $120. 'Department Name';
define prov_name/order order=internal format = $120. 'PCP Name';
define Pts/order order=internal format = comma11. 'Total Active Panel';
break after department_name /dol summarize suppress skip;
break before pts/ol summarize skip ;
run;
options missing = ' ';
proc report data=work.xxx missing center nowd
split='^' ;
title1 '2) Modified Program';
columns department_id department_name prov_name pts ;
define department_id/order order=internal format = BEST11. 'Department Id';
define department_name/order order=internal format = $120. 'Department Name';
define prov_name/order order=internal format = $120. 'PCP Name';
define Pts/sum format = comma11. 'Total Active Panel';
break before department_name/ summarize skip ;
compute after department_name;
line ' ';
endcomp;
compute pts;
if _break_ = ' ' then do;
pts.sum = .;
end;
endcomp;
run;
proc report data=work.xxx missing center nowd
split='^' ;
title1 '3) Showing All Detail Rows';
columns department_id department_name prov_name pts ;
define department_id/order order=internal format = BEST11. 'Department Id';
define department_name/order order=internal format = $120. 'Department Name';
define prov_name/order order=internal format = $120. 'PCP Name';
define Pts/sum format = comma11. 'Total Active Panel';
break before department_name/ summarize skip ;
compute after department_name;
line ' ';
endcomp;
run;
ods html close;
[/pre]