Judging a report by its title


The SAS output delivery system (ODS) makes it so easy to create great-looking output that many folks forget that you can make it even better.

One step that folks often leave out: applying a custom title for HTML output. I'm not talking about the title text that you see as a result of the TITLE statement. Instead, I'm talking about the title that appears in your web browser window, showing the content of the <TITLE> tag that lives inside your HTML.

By default, the title that SAS generates is "SAS Output". Do people really forget to change this? Yes, and you can scour the internet for examples by using this search string in Google:

allintitle: "SAS Output"

This search finds web pages that have the exact phase "SAS Output" in the <TITLE> tag. It's a great way to see what other folks are creating with SAS, but it's probably not what they intended.

To create a custom title for your HTML output, use the (TITLE='title-text') suboption when specifying the output file. For example:

ods html 
     (title="My report deserves a great title")
/** your report program here **/
ods html close;

Tags SAS tips

About Author

Chris Hemedinger

Senior Manager, SAS Online Communities

+Chris Hemedinger is the manager of SAS Online Communities. Since 1993, Chris has worked for SAS as an author, a software developer, an R&D manager and a consultant. Inexplicably, Chris is still coasting on the limited fame he earned as an author of SAS For Dummies.  He also hosts the SAS Tech Talk webcasts each year from SAS Global Forum, connecting viewers with smart people from SAS R&D and the impressive work that they do.

1 Comment

Leave A Reply

Back to Top