ODS HTML Statement

Opens or closes the HTML destination.
Used by: GANNO, GAREABAR, GBARLINE, GCHART, GCONTOUR, GMAP, GPLOT, GRADAR, GREPLAY, GSLIDE, G3D, G3GRID
Requirement: On mainframes, either GPATH= or PATH= is required.

Syntax

ODS HTML <(<ID=> identifier)> <action> ;
ODS HTML <(<ID=> identifier)> <option(s)> ;

Details

Description: ODS HTML Statement

This section describes the ODS HTML statement as it relates to SAS/GRAPH procedures. For complete information about the ODS HTML statement, see the SAS Output Delivery System: User's Guide.
The ODS HTML statement opens or closes the HTML destination. This destination is the default output destination for the Windows and UNIX operating systems. When the destination is open, the procedure produces output that is written in Hypertext Markup Language in the form of an HTML file. If no device is specified, SAS/GRAPH, by default, creates a PNG file containing the graph. The HTML file references the PNG file in order to display the graph in a Web page.
If DEVICE=JAVAMETA, graphics output is produced as metagraphics data. The browser passes the metacodes as a parameter to the Metaview applet. The Metaview applet renders the output defined by the metacodes, and displays the interactive graph in a Web page. For more information about DEVICE=JAVAMETA see Developing Web Presentations for the Metaview Applet.
You can also use the DEVICE=JAVA and DEVICE=ACTIVEX options to create interactive graphics presentations for the Web.
SAS/GRAPH adds data tip text to some graphs depending on the device specified. These data tips are generated by default using the values of fields in a SAS data set. You can specify the DESCRIPTION= option on the SAS/GRAPH procedure to change or remove the data tip text. For more information about using data tips see Data Tips for Web Presentations.
The FILE= option identifies the file that contains the HTML version of the procedure output. With SAS/GRAPH, the body file contains references to the graphs. If DEVICE=PNG, the graphs are stored in separate PNG files. When you view the body file in a browser, the graphs are automatically displayed. By default with ODS processing, both the HTML and PNG files are stored in the current WORK library. To specify a destination for all the HTML and PNG files, use the PATH= option. To store the PNG files in a different location than the HTML files, use the GPATH= option to specify a location for the PNG files, and the PATH= option to specify the location of the HTML files. In both cases,the destination must be an aggregate storage location.

Anchors

ODS HTML automatically creates an anchor for every piece of output generated by the SAS procedures. An anchor specifies a particular location within an HTML file. In SAS/GRAPH, an anchor usually defines a link target such as a graph whose location is defined in an IMG element.
In order for the links from the contents, page, or frame file to work, each piece of output in the body files must have a unique anchor to link to. The anchor for the first piece of output in a body file acts as the anchor for that file. These anchors are used by the frame and contents files, if they are created, to identify the targets for the links that ODS HTML automatically generates. For more information about using anchors with the ODS HTML statement, see the SAS Output Delivery System: User's Guide.