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.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register 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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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