BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Subhan
Calcite | Level 5

Hi,

I am trying to resolve the below sas code for output the .rtf file.

But I am getting the blank value in  summarized row.

I think the code "rbreak after /  summarize ;" is not getting resolved.

Can you please help me to resolve the same.

ods rtf file = "....\....Report.rtf" startpage = no bodytitle;

ods escapechar = '^';

proc report nowindows data=x style(report)={outputwidth=6in}

    style(header)={background=blue};

column source Record_count Total_amount;

define source/display 'SOURCE' style(column)=[just=center];

define Record_count/display 'RECORD COUNT' style(column)=[just=center] ;

define Total_amount/display 'Total Amount' style(column)=[just=center] ;

rbreak after /  summarize ;

title "INPUT FILES";

footnote1;

footnote2;

run;

ods rtf close;

1 ACCEPTED SOLUTION

Accepted Solutions
data_null__
Jade | Level 19

You don't have any "ANALYSIS" variables.

proc report data=sashelp.class list nowd;
  
columns _all_;
   define _numeric_ / analysis;
  
rbreak after / summarize;
  
run;

10-29-2014 10-22-50 AM.png

View solution in original post

4 REPLIES 4
Ksharp
Super User

Show some sample data .

data_null__
Jade | Level 19

You don't have any "ANALYSIS" variables.

proc report data=sashelp.class list nowd;
  
columns _all_;
   define _numeric_ / analysis;
  
rbreak after / summarize;
  
run;

10-29-2014 10-22-50 AM.png
bharathtuppad
Obsidian | Level 7

You have given the option display for record count and total_amount. Thats why you are not getting the totals. Apply analysis or remove the define statement for the varaible for which you want totals.

proc report nowindows data=sashelp.class style(report)={outputwidth=6in}

    style(header)={background=blue};

column source record_count total_amount;

define source/display 'SOURCE' style(column)=[just=center];

define record_count/analysis 'RECORD COUNT' style(column)=[just=center] ;

define total_amount/analysis 'Total Amount' style(column)=[just=center] ;

rbreak after /  summarize ;

title "INPUT FILES";

footnote1;

footnote2;

run;

Subhan
Calcite | Level 5

Thank You all for your help.It worked.

Catch up on SAS Innovate 2026

Dive into keynotes, announcements and breakthroughs on demand.

Explore Now →
What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 2569 views
  • 3 likes
  • 4 in conversation