BookmarkSubscribeRSS Feed
ProcFreq
Calcite | Level 5
Hello.

I use a long program with many sections to complete my quarterly reports. Currently I use ODS HTML to create one big file that is opened at the beginning of the program and closed at the end and contains all of the output. I then have to sort through all of that data and manually plug it into an excel spreadsheet.

I was wondering if anyone knew of a way to "hide" sections of the ouput that were not needed for my report so that they would not be displayed in the HTML output? I need them to be run because they are useful for other things, but I would like to eliminate scrolling through all of them in the HTML output. Mostly what I need to have in the HTML is all of my proc tabulate steps. If it is not possible to "hide" steps using ODS HTML, it is possible to open and close it several times throughout the program and still have it append into one HTML file by the end?

Thanks!
1 REPLY 1
Tim_SAS
Barite | Level 11
You can use the ODS SELECT and EXCLUDE statements to choose the tables that you want to appear in your HTML file. Use the ODS TRACE ON statement to find out what tables your program creates, then use ODS EXCLUDE to exclude the tables you don't want to see. Here's the doc for ODS EXCLUDE: http://support.sas.com/documentation/cdl/en/odsug/59523/HTML/default/a002233281.htm.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 853 views
  • 0 likes
  • 2 in conversation