- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi, All:
I am trying to generate RTF Output in SAS 9.3, and my output includes many Section Breaks.
I would like to delete them or replace with Page Breaks. If you have any ideas, please tell me.
I am sorry for no example code. I tryed to reproduce my codition, but I can not.
Thank you in advance.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Pretty difficult to create any ODS RTF output with tables that doesn't create a section break as that is sort of how RTF delineates the start and end of tables (among other things).
Not as pretty but you might be able to use ODS LISTING output to create a TEXT file but almost any "pretty" output features would make this impractical.
With a specific example we might have some ideas but there really isn't a generic one from the SAS side.
You should be able to do search and replace for section breaks in your word processor program to modify the RTF. In WORD use Ctrl-h to get the Find and Replace window; click on the More>> button, The Special button will allow to insert special characters from a drop down list into the Find or the Replace box.
I do not recommend using "Replace All" with the special characters as you may find that some when removed will do some double-plus-ungood things to the appearance of your document.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Pretty difficult to create any ODS RTF output with tables that doesn't create a section break as that is sort of how RTF delineates the start and end of tables (among other things).
Not as pretty but you might be able to use ODS LISTING output to create a TEXT file but almost any "pretty" output features would make this impractical.
With a specific example we might have some ideas but there really isn't a generic one from the SAS side.
You should be able to do search and replace for section breaks in your word processor program to modify the RTF. In WORD use Ctrl-h to get the Find and Replace window; click on the More>> button, The Special button will allow to insert special characters from a drop down list into the Find or the Replace box.
I do not recommend using "Replace All" with the special characters as you may find that some when removed will do some double-plus-ungood things to the appearance of your document.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi, ballardw-san:
Thank you for your reply.
I understand it is difficult.
I have written code that outputs SAS executed time stamp with result,
so I do not suppose to (I can not) operate results after executing programs.
Anyway, thank you so much, ballardw-san.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
@KentaMURANAKA wrote:
Hi, ballardw-san:
Thank you for your reply.
I understand it is difficult.
I have written code that outputs SAS executed time stamp with result,
so I do not suppose to (I can not) operate results after executing programs.
Anyway, thank you so much, ballardw-san.
If you need a lot of control then you might look into the Report Writing Interface, a DATA step that you provide all of the output instruction for each column and row. But that is only likely to be possible for replacing Proc Report or Proc Tabulate sorts of output. If you are using the output as provided by any of the analysis procedures you would have to 1) pipe all of the desired output into data sets and 2) write each step separately. And even then that is not likely to eliminate Section breaks but you might have better chances of placing them where you want them.
The RTF STARTPAGE and KEEPN options may be worth considering. You can change these options in the middle of a document to force page breaks before a procedure, STARTPAGE=NOW, and possibly keep some related output together as needed if it fits on a single page with KEEPN.
TAGSETS.RTF also has a few other options.
You can insert RTF codes with the escapechar function RAW also.