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.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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