Hi,
Say there are two ODS destinations open, and I run three proc prints.
I want the first one to go to the HTML and RTF documents, the second one to go to the HTML document only, and the third one to the RTF document only.
Is there a way to do this?
PS
The reason this needs to to done is that the (same) data contains HTML formatting in one case (like <br>), and RTF formatting for the other case (like \line).
Maybe there is a better way than embedding these formatting words (and use style protectspecialchars=off ) in otherwise identical data?
For HTML or HTML5, you could use the NO_BOTTOM_MATTER and NO_TOP_MATTER options, plus FILENAME with append options, to "pause" and "continue" output to an HTML destination.
And then there is SELECT and EXCLUDE options on these ODS destinations, to selectively decide what to output where.
Might be a good reason for a ODS <destination> SUSPEND statement.
For HTML or HTML5, you could use the NO_BOTTOM_MATTER and NO_TOP_MATTER options, plus FILENAME with append options, to "pause" and "continue" output to an HTML destination.
And then there is SELECT and EXCLUDE options on these ODS destinations, to selectively decide what to output where.
Thanks Chris
I thought SELECT was only to manage documents.
Adding lines such as
ods rtf select ALL;
ods html exclude ALL;
seems to do the trick!
I also found this paper (by @Cynthia_sas of course) about doing this in a smarter manner.
https://support.sas.com/resources/papers/proceedings/proceedings/forum2007/099-2007.pdf
@Cynthia_sas Your paper contains this table
Is there a somewhat comprehensive list of the various customisation options, at least for the first three categories?
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register 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.