Hello, I am using sas 9.4 and I appreciate you all to help me solve these issues:
1) The rtf file is not opening in word file by default. I want the rtf file opens in word file by default.
2) only first title is printed in rtf file, the second title is not printed
ods rtf on ;
ods html close;
ods graphics on;
ods rtf file="myfilelocation\filename.rtf "style=sasweb startpage=no bodytitle;
title1'title1 ';
proc print data=data1;run;
title2'title2';
proc print data=data2;run;
title'';
ods startpage=yes;
ods rtf close;
ods html ;
Thank you so much for your valuable reply
Hi:
I am wondering what version of SAS you're running? When I run a slightly modified version of your code using ODS RTF, in SAS 9.4 M7, to use SASHELP data, I DO see the titles inside the body of the document. Since SAS titles are global, TITLE1 appears above the first report; TITLE1 and TITLE2 appear above the second report; and all 3 titles appear above the third report, as shown below:
Earlier versions of SAS and ODS did not always put titles in the middle of a page with STARTPAGE=YES, , but 9.4 M7 seems to work as you intend.
Cynthia
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.