Below is my code, my purpose is to print data and text "aaaaaaaaaaaaaaaaa" in one page and "bbbbbbbbbbbbbbbbbbbbbbbbb' in another page. How can I do it? I do not know which option should I add between the two ods rtf text.
Thanks.
ods rtf file="C:\XXXXXXX\Desktop\111.rtf";
ods escapechar="^";
proc report data=sashelp.cars (obs=10);
run;
ods rtf text="aaaaaaaaaaaaaaaa";
ods rtf text="bbbbbbbbbbbbbbbbbbbb";
ods rtf close;
Hi, try to include ods startpage=now;
HTH.
ods rtf file="C:\XXXXXXX\Desktop\111.rtf";
ods escapechar="^";
proc report data=sashelp.cars (obs=10);
run;
ods rtf text="aaaaaaaaaaaaaaaa";
ods startpage=now;
ods rtf text="bbbbbbbbbbbbbbbbbbbb";
ods rtf close;
Hi, try to include ods startpage=now;
HTH.
ods rtf file="C:\XXXXXXX\Desktop\111.rtf";
ods escapechar="^";
proc report data=sashelp.cars (obs=10);
run;
ods rtf text="aaaaaaaaaaaaaaaa";
ods startpage=now;
ods rtf text="bbbbbbbbbbbbbbbbbbbb";
ods rtf close;
Thanks. I tried and it works well.
If I recall correctly, the text statement is similar to title in that a proc has to run before it's outputted to the RTF file.
There are some difference. If there is no startpage=now. The content of ods text will be in the same page as the last output.
Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.
Explore Now →Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.