Usage Note 23656: How can I view the ODS HTML table of contents or the frame file in the Results Viewer?
Only the file created with the BODY= option is presented in the
Results Viewer. To view a file other than the body file, open the file
with a browser. This can be done programmatically
by issuing the DM statement along with the WBROWSE command.
In the following example code, we have already created a frame file
called frame.html. This DM statement is issued after the ODS HTML CLOSE
statement:
dm "wbrowse 'frame.html'";
By using a little JavaScript, we can check to see if this file is
the parent or top page. If it is, then we can force this page in the
frame by using the below syntax. Notice the file specified in the
TAGATTR= option is the same file that we used with the FRAME= option.
proc template;
define style styles.test;
parent=styles.default;
style startupfunction /
tagtattr='if (top.location==self.location)
{ top.location.href="frame.html" }';
end;
run;
ods html file='temp.html'
content='contents.html'
frame='frame.html' style=styles.test;
proc print data=sashelp.class;
run;
proc print data=sashelp.class;
title 'test';
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)
|
| Date Modified: | 2004-01-12 16:00:29 |
| Date Created: | 2004-01-09 16:04:04 |