BookmarkSubscribeRSS Feed
wcpatton
Calcite | Level 5
So it seems that no matter what I do, there ends up being blank space between my titles on the ToC that can be clicked on, causing the procedure name to disappear\collapse. Any way to disable this behavior?

Ideally, my ToC\Frame would only have the links to the appropriate section of the report.

Thanks.
1 REPLY 1
Cynthia_sas
SAS Super FREQ
Hi:
ODS HTML is making very "vanilla" HTML 4.0 tags, <FRAMESET> and <FRAME> tags. So, the fact is that a lot of folks make their series of related files and then send the separate file names or named anchors, etc to their web guys who then build JavaScript or PHP or ASP or whatever they use instead of vanilla frames.

If you want to see the active link and only the link in your frame file from ODS HTML, then you have 2 or 3 ways to make that happen:
1) abandon the FRAME= file built by ODS HTML and build your own (newer!, more streamlined!) HTML file with whatever structure/code you want and then use it instead of the original FRAME= file (It will most be DATA _NULL_ and a bunch of PUT statements); or

2) use ODS DOCUMENT to save the original output objects and then rearrange the output objects to get rid of all the intermediate folder structure in the FRAME= and TOC= files and generate a new TOC and FRAME file from the new structure, as shown in this paper:
http://support.sas.com/resources/papers/sgf09/318-2009.pdf ; or

3) use a SAS Style template to alter some, but not all of the TOC file that ODS generates, as described in these SAS notes:
http://support.sas.com/kb/23/345.html
http://support.sas.com/kb/25/059.html
http://support.sas.com/kb/23/436.html
http://support.sas.com/kb/23/440.html
http://support.sas.com/kb/23/439.html

or
4) use a custom HTML-based tagset template to generate the HTML tags that you want for your TOC (this assumes, like #1, that you know what HTML tags you want to generate.) This paper shows a combination of #3 and #4 approach:
http://support.sas.com/resources/papers/proceedings09/226-2009.pdf


Personally, I prefer the ODS DOCUMENT approach over the style template or tagset template approach, but I've used all 4 approaches at one time or another and they are all do-able. Also, if all you're talking about is the expansion/contraction of the TOC list, these may be relevant:
http://support.sas.com/kb/23/397.html
http://support.sas.com/kb/23/421.html

cynthia

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 988 views
  • 0 likes
  • 2 in conversation