Tip of the Day

From sasCommunity
Jump to: navigation, search

sasCommunity Tip of the Day

The STPBEGIN macro, used in SAS Stored Processes to generate the ODS statement based on the client (e.g., a Web browser, SAS Enterprise Guide, SAS Add-in for Microsoft Office, etc.), does not have an option to specify the TITLE attribute for HTML output. However, you can use the _ODSOPTIONS global macro variable to specify a browser title by setting the value before the STPBEGIN macro call as follows:

%let _ODSOPTIONS = body=_webout (title = "Title Goes Here");

You need to specify body =_webout, which is the default value for streaming output, in order to force the title to be inserted in the right place in the ODS statement. If not done this way, an error will be generated. This only works for the HTML destination and only with the SAS Stored Process Server.

Submitted By Don Henderson

Feel free to comment on this tip.

Prior tip - Next tip -- Random Tip

Submit a Tip


Tips Index by Status

Currently in Use | Yet to be Scheduled | Still Under Review | Tip Awaiting Refinement

Search Tips:

The Tip of the Day Project

A new technical Tip of the Day related to SAS software will be shown on this page and the sasCommunity.org main page every day. Before getting started, you can Browse and Search the current list of tips contributed by users.

Anyone can participate. We hope you do! Here's how:

  1. Submit a Tip by posting a SAS tip that you think others might find useful
  2. Review a Tip prior to publishing
This effort is similar to, and was motivated by, the WikiPedia Tip of the Day Project. Please tell us what you think