Hi,
I would like to use code to suppress HTML output while keep the LISTING output.
I tried running ODS HTML CLOSE; ODS LISTING;
However, I still get an html output along with the listing output.
Thanks for the help.
Sincerely,
William Spagnola
Try
ods _all_ close;
ods listing;
Are you using EG, BASE or Studio? You may have options set elsewhere that may override your ODS settings.
I'm using EG.
I noticed that ODS _ALL CLOSE; ODS LISTING; works for the first output I produce but HTML is produced for all subsequent output.
Tools > Options > General Results. Ensure HTML is not selected and Listing is selected.
Not really sure what the advantage of having two types of output would be.
If I don't like the tables HTML creates, and I can understand several reasons, I would use RTF or PDF output to have "nicer" tables but still have graphics output in the same document.
EG adds wrapper code that will likely overwrite what you have included. You'll first need to include it in ALL your programs to ensure your output is as desired. EG settings apply to the whole project so changing your default settings seems like the easiest method IMO.
TBH this is a slightly weird request, why not just output everything to the same output, PDF, Word, Excel or PowerPoint, HTML and control your styles to get what you need?
Thanks.
Yeah, I admit that it is probably not a typical request and will probably not make much sense, even if I try to explain it.
Anyway, here is my explanation. I actually don't want to create an output file. I just want to have a file that I can quickly reference located in the Process Flow window. I guess it would make sense to follow ballard's advice and use only one output that allows graphics instead of using ODS listing plus ODS html. However, there is a few reasons why I would like to use ODS listing plus another output that supports graphs. First, I find the table formats created by ODS listing to be more visually appealing. Second, using two different formats will help me remember which programs do what in a given EGP.
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.