Tip of the Day
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.
Tips Index by Status
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:
- Submit a Tip by posting a SAS tip that you think others might find useful
- Review a Tip prior to publishing