Previous Page | Next Page

Dictionary of ODS Language Statements

ODS Tagset Statement



Opens, manages, or closes the specified tagset destination.
Valid: anywhere
Category: ODS: Third-Party Formatted
Interaction: If you use the ODS tagset statement in an ODS markup family statement that refers to an open ODS markup destination, then the option will force ODS to close the destination and all files associated with it, and then to open a new instance of the destination. For more information, see Opening and Closing the MARKUP Destination.
See also: For additional information about specifying tagsets, see TEMPLATE Procedure: Creating Markup Language Tagsets or ODS MARKUP Statement.

Syntax
Actions
Options
Details
Understanding Tagsets
Listing Tagset Names
Viewing the Source of a Tagset
Viewing Available Options for a Tagset
Examples
Example 1: Using the DOC Suboption to Get ODS TAGSETS.HTMLPANEL Information
See Also

Syntax

ODS directory.tagset-name file-specification <option(s)>;
ODS directory.tagset-name file-specification action;


Actions

The following table lists the actions available for the ODS tagset statement. For complete descriptions of actions see Actions in the ODS MARKUP statement.

ODS Tagset Action Summary Table
Task Action
Close the destination and the file that is associated with it CLOSE
Exclude output objects from the destination EXCLUDE
Select output objects for the destination SELECT
Write to the SAS log the current selection or exclusion list for the destination SHOW


Options

The following table lists the options that are available for the ODS Tagset statement, which is part of the markup family of statements. For complete descriptions of these options, see Options in the ODS MARKUP statement.

ODS Tagset Option Summary Table
Task Option
Specify a unique base name for the anchor tag that identifies each output object in the current body file ANCHOR=
Specify which applet to use to view ODS output ARCHIVE=
Specify attributes to write between the tags that generate dynamic graphics output ATTRIBUTES=
Specify text to use as the first part of all links and references that ODS creates in output files BASE=
Open a markup family destination and specify the file that contains the primary output that is created by the ODS statement BODY=
Specify the character set to be generated in the META declaration for the output CHARSET=
Open the tagset destination and specify that the file that contains relevant style information CODE=
Create a file path that can be used by the GOPTIONS devices CODEBASE=
Open the tagset destination and specify the file that contains a table of contents for the output CONTENTS=
Specify a cascading style sheet to apply to your output CSSSTYLE=
Override the encoding for input or output processing (transcodes) of external files ENCODING=
Specify an event and the value for event variables that is associated with the event EVENT=
Specify the file that integrates the table of contents, the page contents, and the body file FRAME=
Control the location where footnotes are printed in the graphics output GFOOTNOTE | NOGFOOTNOTE
Specify the location for all graphics output that is generated while the destination is open GPATH=
Control the location where titles are printed in the graphics output GTITLE | NOGTITLE
Specify markup tags to place between the <HEAD> and </HEAD> tags in all the files that the destination writes to HEADTEXT=
Open multiple instances of the same destination at the same time ID=
Specify markup code to use as the <META> tag between the <HEAD> and </HEAD> tags in all the markup files that the destination writes to METATEXT=
Create a new body file at the specified starting point. Opens a markup family destination and specifies the file that contains a description of each page of the body file, and contains links to the body file NEWFILE=
Open the destination and specify the file that contains a description of each page of the body file, and contains links to the body file PAGE=
Write the specified parameters between the tags that generate dynamic graphics output PARAMETERS=
Specify the location of an external file or a SAS catalog for all HTML files PATH=
Specify an alternative character or string to separate lines in the output files RECORD_SEPARATOR=
Specify a style definition to use in writing output files STYLE=
Open the destination and place style information for output into an external file, or read style sheet information from an existing file STYLESHEET=
Insert text into your document TEXT=
Insert into the metadata of a file, a text string that you want to specify as the text to appear in the browser window title bar TITLE=
Specify a translation table to use when transcoding a file for output TRANTAB=

The following table lists the options that are most useful for the ODS tagset statement. You can use the ODS tagset options and the ODS MARKUP statement options together.

ODS Tagset Option Summary Table
Task Option
Specify tagset-specific options OPTIONS
Specify a directory where the tagset is stored directory
Specify a tagset tagset-name

OPTIONS ( DOC= ) | sub-option(s)

specifies ODS tagset-specific sub-options and a named value.

(DOC='QUICK' | 'HELP' | 'SETTINGS')

provides information about the specified tagset.

QUICK

describes the options available for this tagset.

HELP

provides generic help and information with a quick reference.

SETTINGS

provides the current option settings.

Requirement: All values must be enclosed in quotation marks.
sub-option(s)

specifies one or more suboptions that are valid for the specified tagset. To list suboptions that are valid for a tagset, specify DOC="HELP" or DOC="QUICK" with the OPTIONS option.

Requirement: The OPTION suboptions must be enclosed in parenthesis.
Featured in: Using the DOC Suboption to Get ODS TAGSETS.HTMLPANEL Information
directory

specifies the directory where the specified tagset is stored. directory can be a directory supplied by SAS, a user- defined entry, or a libref. By default, the tagsets that SAS supplies are located in the directory TAGSETS, which is within the item store SASHELP.TMPLMST.

tagset-name

specifies the name of the tagset. tagset-name can be one of the following:

CHTML

produces compact, minimal HTML output that does not use style information. It does produce a hierarchical table of contents.

See: ODS CHTML Statement
CORE

contains a table of Unicode values and mnemonics. Refer to Using Unicode Symbols for a detailed description on using this tagset.

CSV

produces tabular output that contains columns of data values that are separated by commas.

Interaction: The TEXT= option has no affect in the CSV file output.
Featured in: Defining a Tagset Using SAS DATA Step Functions.
CSVALL

produces HTML output containing columns of data values that are separated by commas, and produces tabular output with titles, notes, and bylines.

Interaction: The TEXT= option has no affect in the CSV file output.
See also: ODS CSVALL Statement
Feature in: Creating Multiple Markup Output
CSVBYLINE

produces output with comma-separated values and columns of data that are separated by commas.

Interaction: The TEXT= option has no affect in the CSV file output.
DEFAULT

produces XML output.

DOCBOOK

produces XML output that conforms to the DocBook DTD by OASIS.

See also: ODS DOCBOOK Statement
ExcelXP

produces Microsoft spreadsheetML XML. This tagset is used to import data into Excel. Execute the following code to get detailed information on this tagset:

ods tagsets.excelxp file='test.xml' options(doc='help');
HTML4

produces HTML 4.0 embedded style sheets.

See also: ODS HTML Statement
HTMLCSS

produces HTML output with cascading style sheets that is similar to ODS HTML output.

See also: ODS HTMLCSS Statement
HTMLPANEL

creates panels for BY grouped graphs. It also has controls for semi-automatic and manually controlled paneling. This tagset makes it easy to put graphs and tables side-by-side on a page. Also included are controls for titles, footnotes, and bylines.

To get detailed help on this tagset, any of the following three lines of code can be executed:

ods tagsets.htmlpanel file="gbypanel.html" options(doc='help');
ods tagsets.htmlpanel  options(doc='quick');
ods tagsets.htmlpanel  options(doc='settings');
IMODE

produces HTML output as a column of output that is separated by lines. This tagset is used by the Japanese telephone service provider NTT.

See also: ODS IMODE Statement
MSOFFICE2K

produces HTML code for output generated by ODS for Microsoft Office products.

MVSHTML

produces URLs within HTML files that are used in the z/OS operating environment.

PHTML

produces simple HTML output that uses twelve style elements and no class attributes for the presentation. Class attributes are used only for the justification.

See also: ODS PHTML Statement
PYX

produces PYX, which is a simple, line-oriented notation used by Pyxie to describe the information communicated by an XML parser to an XML application. Pyxie is an Open Source library for processing XML with the Python programming language.

RTF

produces measured RTF. This tagset allows the user to specify how and where page breaks occur and when to place titles and footnotes into the body of a page. The RTF tagset enables SAS to place titles and footnotes into the body of the document so that it is outside of the control of Microsoft Word. Therefore, SAS becomes responsible for the implicit page breaks.

Refer to ODS TAGSETS.RTF Statement for details on how to use the RTF tagset.

SASREPORT

causes embedded data to be produced in CSV format. SASREPORT11 and SASREPORT12 are the supported tagsets. For more information on how to use this tagset, execute one line of the following code:

ods tagsets.sasreport11 file='test.xml' options(doc='help');
ods tagsets.sasreport12 file='test.xml' options(doc='help');
user-defined-tagset

specifies the tagset that you created using PROC TEMPLATE.

Main discussion: Creating Custom Tagsets.
WML

uses the Wireless Application Protocol (WAP) to produce a Wireless Markup Language (WML) DTD with a list of URLs as a table of contents.

See also: ODS WML Statement
WMLOLIST

uses the Wireless Application Protocol (WAP) to produce a Wireless Markup Language (WML) DTD with an option list for the table of contents. For more information, see Wireless Application Protocol.

XHTML

produces output in HTML format. For details on using this tagset, execute the following code:

ods tagsets.xhtml file='test.html' options(doc='help');

Note:   There are also preproduction tagsets. These tagsets can be found at http://support.sas.com and are not supported by SAS.  [cautionend]

The following are diagnostic tagsets:
EVENT_MAP

creates XML output that shows which events are being triggered and which variables are used by an event to send output from a SAS process to an output file. When you run a SAS process with EVENT_MAP, ODS writes XML to an output file that shows all event names and variable names as tags. The output helps you to create your own tagsets.

NAMEDHTML

creates HTML output similar to STYLE_POPUP, but with all the objects labeled as they are when using ODS TRACE.

SHORT_MAP

creates a subset of the XML output that is created by the EVENT_MAP tagset.

STYLE_DISPLAY

creates a sample page of HTML output that is similar to STYLE_POPUP output. The output helps you to create and modify styles.

See also: STYLE_POPUP
STYLE_POPUP

creates HTML like HTMLCSS, but if you're using Internet Explorer, STYLE_POPUP displays a window that shows the resolved ODS style definition for any item that you select.

TEXT_MAP

creates text output that shows which events are being triggered as ODS handles the output objects.

Tip: You can use the TEXT_MAP output as an alternative to the output that is created by the EVENT_MAP tagset.
See also: EVENT_MAP
TPL_STYLE_LIST

creates HTML output in a bulleted list similar to EVENT_MAP but lists only a subset of the possible attributes.

Tip: The output helps you to understand tagsets and styles.
TPL_STYLE_MAP

creates XML output similar to EVENT_MAP but lists only a subset of the possible attributes.

Tip: The output helps you to understand tagsets and styles.

Details


Understanding Tagsets

A tagset is a type of template that defines how to generate a markup language output type from SAS data. A markup language is a set of tags and format codes that are embedded in text in order to define layout and certain content.

Starting with SAS 8.2 software, you can use the ODS tagset statement to specify a tagset to create markup language output from the Output Delivery System. SAS provides tagset definitions for a variety of markup language output. For example, there are several SAS tagsets for XML output, HTML output, XSL, and so on. In addition to using the tagsets provided by SAS, you can modify the SAS tagsets, and you can create your own. By supplying new tagset definitions, ODS output and XML LIBNAME engine output is user-configurable, generating a wider variety of markup language output. For information on modifying SAS tagsets and creating your own tagsets, see TEMPLATE Procedure: Creating Markup Language Tagsets.


Listing Tagset Names

To see a list of available tagsets, issue the following SAS statements or view them in the Templates window.

By default, PROC TEMPLATE lists the tagsets in SASHELP.TMPLMST and SASUSER.TEMPLAT. Typically, SASHELP.TMPLMST is a read-only item store for the SAS tagsets, and SASUSER.TEMPLAT is the item store for user-defined tagsets.

Viewing the Source of a Tagset

To see the source for a tagset definition, you can either open the tagset in the SAS Explorer window, or use PROC TEMPLATE and specify the two-level name of the tagset. For example, to see the source of the SAS tagset CHTML, issue these SAS statements:

  proc template; 
    source tagsets.chtml;  
quit;


Viewing Available Options for a Tagset

To view the options that are available for a specific tagset, use the OPTIONS (DOC=) option with one of the following specified:

QUICK

describes the options available for this tagset.

HELP

provides generic help and information with a quick reference.

SETTINGS

provides the current option settings.


Examples


Example 1: Using the DOC Suboption to Get ODS TAGSETS.HTMLPANEL Information

ODS features:

ODS TAGSETS.HTMLPANEL statement:

Action:

CLOSE

Options:

OPTIONS

(DOC="HELP")

FILE=

Other SAS features:

PROC PRINT


Program Description

The following example prints to the SAS log the OPTIONS suboptions for the HTMLPANEL tagset and a description of each available suboption.


Program

 Note about code
ods tagsets.htmlpanel file='Help.rtf' options (doc="help");
 Note about code
proc print data=Sashelp.Class;
run;
 Note about code
ods _all_ close;

Output

Options Available for the HTMLPANEL Tagset

 Note about figure

[Options Available for the HTMLPANEL Tagset]


See Also

Statement:

ODS MARKUP Statement

TEMPLATE Procedure: Creating Markup Language Tagsets

Previous Page | Next Page | Top of Page