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;
You don't have any "ANALYSIS" variables.
Show some sample data .
You don't have any "ANALYSIS" variables.
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;
Thank You all for your help.It worked.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.