When in SAS creating ODS output to a HTML file, it is also possible to create table of contents with "CONTENTS" and "FRAME" options:
ODS HTML PATH="C:\Path\" (url=none)
BODY="body.html"
CONTENTS="contents.html"
FRAME="frame.html";
...
(create ODS output here)
...
ODS HTML CLOSE;
The default output is quite generic and, therefore, it is better to change the contentproclabel:
ods proclabel 'Label for the analysis';
This works in all of the cases.
It would also nice to change the contentitem. With PROC GCHART it works as follows:
proc gchart data=mydata;
block dataitem / description="Description of the graph";
RUN;
But how to change the contentitem when creating PROC SQL SELECT statement? With
ods proclabel 'Summary of analysis variables';
I can change the contentproclable in number list, but how to change the contentitem which by default is always "Query Results" in "PROC SQL; SELECT ... FROM table; QUIT;" statements?
Below is an example table of contents output from the above examples:
Table of Contents
1. Label for the analysis
·Description of the graph
2. Summary of analysis variables
·Query Results
There you can see the
·Query Results
row whose contentitem I would like to change.