Usage Note 23663: For ODS HTML output, how can I add flyovers to the items in the table of contents?
Flyovers can be adding to the items in the table of contents by adding the TITLE= attribute to the style element that you want the flyovers associated with. The below example adds flyovers to both the procedure names in the table of contents and the links. The below example uses
a macro variable to add the flyover so that is can be dynamic and not be hardcoded. Just add the %LET statement
with the title before the procedure and it will add the
TITLE= HTML attribute to the item specified. To avoid error,
make sure that the first %LET statement comes before the ODS
HTML statement.
proc template;
define style styles.test;
parent=styles.default;
style contentprocname from contentprocname /
tagattr=symget('macvar');
style contentsitem from contentitem /
tagattr=symget('macvar');
end;
run;
%let macvar=title='first proc';
ods html file="temp.html" contents="temp1.html" style=styles.test;
proc print data=sashelp.class;
run;
%let macvar=title='second proc';
proc print data=sashelp.class;
run;
ods html close;
See also the full PROC TEMPLATE FAQ and Concepts.
Operating System and Release Information
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
| Type: | Usage Note |
| Priority: | low |
| Topic: | SAS Reference ==> ODS (Output Delivery System) Third Party ==> Output ==> HTML
|
| Date Modified: | 2004-01-16 15:28:54 |
| Date Created: | 2004-01-13 12:54:30 |