I bet that many of you reading our blog are familiar with accomplished SAS users and authors Lauren Haworth, Cynthia Zender, and Michele Burlew. Together, they form a powerful triumvirate of SAS experience. If you get a chance to pick up their book Output Delivery System: The Basics and Beyond or read about some of the cool features on their book's Web catalog page, I think you’ll understand why this 600-page-plus guide flies off the shelves.
The following excerpt is from SAS Press authors Lauren Haworth’s, Cynthia Zender’s, and Michele Burlew’s book Output Delivery System: The Basics and Beyond © 2009, SAS Institute Inc., Cary, North Carolina, USA. ALL RIGHTS RESERVED. (please note that results may vary depending on your version of SAS software)
Generating a Table of Contents with TAGSETS.RTF
We have already seen the use of the CONTENTS= option with ODS RTF. To generate a table of contents with TAGSETS.RTF, the method is very similar. Consider the following code:
ODS TAGSETS.RTF FILE='TOC_SUBOPTIONS.rtf'
title 'Human Resources Reports';
proc means data=hr nonobs maxdec=0 mean sum;
proc print data=hr(obs=25);
ODS _ALL_ CLOSE;
Although you might need to right-click farther down on the page than with traditional ODS RTF TOC
generation, after you right-click and select Update Field, you will see a table of contents generated.
You can get a lot more information about this book including a free chapter and read SAS users’ reviews here!
tagsets.rtf has adventages on tablerows and uniform etc, but one problem with me, the bottom line for last page can not be on the bottom (bottomheader not work for me), it on the middle of page since only a few lines for last page. It was fine with my rtf template. do you have any idea? thanks Lili
Hi Lily, thank you for reading our blog! I'd recommend contacting our Technical Support department for assistance with your question: http://support.sas.com/techsup/contact/
Pingback: SAS author’s tip: Sending ODS output to your printer - The SAS Bookshelf
Pingback: SAS author’s tip: selecting variables to include in output - The SAS Bookshelf