Valid in: | Anywhere |
Category: | ODS: Third-Party Formatted |
Interactions: | The output type is determined by the TAGSET |
TYPE= option, which specifies the type of markup language that is
applied to the output.
By default, when you execute a procedure that uses the FORMCHAR system option (for example, PROC PLOT or PROC CHART), ODS formats the output in SAS Monospace font. If you are creating output that will be viewed in an operating environment where SAS software is not installed, this output will not display correctly. This is because without SAS, the SAS Monospace font is not recognized. To make your document display correctly, include the following statement before your SAS program: OPTIONS FORMCHAR="|----|+|---+=|-/\<>*"; |
tabulate
.
The second anchor is named tabulate1
;
the third is named tabulate2
, and so
on.
Specifying new anchor names at various points in your program is useful when you want other Web pages to link to specific parts of your markup language output. Because you can control where the anchor name changes, you know in advance what the anchor name will be at those points.
The ARCHIVE attribute is a feature of Java 1.1. Therefore, if you are using the Java device driver, your browser must support this version of Java. Both Internet Explorer 4.01 and Netscape 4.05 support Java 1.1.
Use the CODEBASE= option to specify the file path. It is recommended that you do not put a file path in your ARCHIVE= option.
The value of APPLETOC= points to the location of the Java archive files that ship with the SAS system. To find out what the value of this option is, you can either look in the Options window in the Files folder under Environment Control, or you can submit the following procedure step:
proc options option=appletloc; run;
BASE= 'http://www.your-company.com/local-url/'In this case, ODS creates links that begin with the string
http://www.your-company.com/local-url/
.
The appropriate anchor-name completes
the link.
You must specify DYNAMIC next to the file-specification specified by the BODY=, CONTENTS=, PAGE=, FRAME=, or STYLESHEET= option, or next to the tagset-name specified by the TAGSET= option.
You must specify NO_BOTTOM_MATTER next to the file-specification specified by the BODY=, CONTENTS=, PAGE=, FRAME=, or STYLESHEET= option, or next to the tagset-name specified by the TAGSET= option.
If you append text to an external file, you must use a FILENAME statement with the appropriate option for the operating environment.
When you are opening a file that ODS has previously written to, use the ANCHOR= option to specify a new base name for the anchors. This step prevents duplicate anchors.
You must specify NO_TOP_MATTER next to the file-specification specified by the BODY=, CONTENTS=, PAGE=, FRAME=, or STYLESHEET= option, or next to the tagset-name specified by the TAGSET= option.
If you append text to an external file, you must use a FILENAME statement with the appropriate option for the operating environment.
When you are opening a file that ODS has previously written to, use the ANCHOR= option to specify a new base name for the anchors. This step prevents duplicate anchors.
You must enclose title-text in quotation marks.
You must enclose Uniform-Resource-Locator in quotation marks.
You must specify URL= 'Uniform-Resource-Locator' next to the file-specification specified by the BODY=, CONTENTS=, PAGE=, FRAME=, or STYLESHEET= option, or next to the tagset-name specified by the TAGSET= option.
You never need to specify this suboption with the FRAME= option because ODS files do not reference the frame file.
You must specify DYNAMIC next to the file-specification specified by the BODY=, CONTENTS=, PAGE=, FRAME=, or STYLESHEET= option, or next to the tagset-name specified by the TAGSET= option.
You must specify NO_BOTTOM_MATTER next to the file-specification specified by the BODY=, CONTENTS=, PAGE=, FRAME=, or STYLESHEET= option, or next to the tagset-name specified by the TAGSET= option.
If you append text to an external file, you must use a FILENAME statement with the appropriate option for the operating environment.
When you are opening a file that ODS has previously written to, use the ANCHOR= option to specify a new base name for the anchors. This step prevents duplicate anchors.
You must specify NO_TOP_MATTER next to the file-specification specified by the BODY=, CONTENTS=, PAGE=, FRAME=, or STYLESHEET= option, or next to the tagset-name specified by the TAGSET= option.
If you append text to an external file, you must use a FILENAME statement with the appropriate option for the operating environment.
When you are opening a file that ODS has previously written to, use the ANCHOR= option to specify a new base name for the anchors. This step prevents duplicate anchors.
You must enclose title-text in quotation marks.
You must enclose Uniform-Resource-Locator in quotation marks.
You must specify URL= 'Uniform-Resource-Locator' next to the file-specification specified by the BODY=, CONTENTS=, PAGE=, FRAME=, or STYLESHEET= option, or next to the tagset-name specified by the TAGSET= option.
You never need to specify this suboption with the FRAME= option because ODS files do not reference the frame file.
You must specify DYNAMIC next to the file-specification specified by the BODY=, CONTENTS=, PAGE=, FRAME=, or STYLESHEET= option, or next to the tagset-name specified by the TAGSET= option.
You must specify NO_BOTTOM_MATTER next to the file-specification specified by the BODY=, CONTENTS=, PAGE=, FRAME=, or STYLESHEET= option, or next to the tagset-name specified by the TAGSET= option.
If you append text to an external file, you must use a FILENAME statement with the appropriate option for the operating environment.
When you are opening a file that ODS has previously written to, use the ANCHOR= option to specify a new base name for the anchors. This step prevents duplicate anchors.
You must specify NO_TOP_MATTER next to the file-specification specified by the BODY=, CONTENTS=, PAGE=, FRAME=, or STYLESHEET= option, or next to the tagset-name specified by the TAGSET= option.
If you append text to an external file, you must use a FILENAME statement with the appropriate option for the operating environment.
When you are opening a file that ODS has previously written to, use the ANCHOR= option to specify a new base name for the anchors. This step prevents duplicate anchors.
You must enclose title-text in quotation marks.
You must enclose Uniform-Resource-Locator in quotation marks.
You must specify URL= 'Uniform-Resource-Locator' next to the file-specification specified by the BODY=, CONTENTS=, PAGE=, FRAME=, or STYLESHEET= option, or next to the tagset-name specified by the TAGSET= option.
You never need to specify this suboption with the FRAME= option because ODS files do not reference the frame file.
You must specify media-type next to the file-specification specified by the CSSSTYLE= option.
You must specify DYNAMIC next to the file-specification specified by the BODY=, CONTENTS=, PAGE=, FRAME=, or STYLESHEET= option, or next to the tagset-name specified by the TAGSET= option.
You must specify NO_BOTTOM_MATTER next to the file-specification specified by the BODY=, CONTENTS=, PAGE=, FRAME=, or STYLESHEET= option, or next to the tagset-name specified by the TAGSET= option.
If you append text to an external file, you must use a FILENAME statement with the appropriate option for the operating environment.
When you are opening a file that ODS has previously written to, use the ANCHOR= option to specify a new base name for the anchors. This step prevents duplicate anchors.
You must specify NO_TOP_MATTER next to the file-specification specified by the BODY=, CONTENTS=, PAGE=, FRAME=, or STYLESHEET= option, or next to the tagset-name specified by the TAGSET= option.
If you append text to an external file, you must use a FILENAME statement with the appropriate option for the operating environment.
When you are opening a file that ODS has previously written to, use the ANCHOR= option to specify a new base name for the anchors. This step prevents duplicate anchors.
You must enclose title-text in quotation marks.
You must enclose Uniform-Resource-Locator in quotation marks.
You must specify URL= 'Uniform-Resource-Locator' next to the file-specification specified by the BODY=, CONTENTS=, PAGE=, FRAME=, or STYLESHEET= option, or next to the tagset-name specified by the TAGSET= option.
You never need to specify this suboption with the FRAME= option because ODS files do not reference the frame file.
This option applies only to SAS programs that produce one or more device-based graphics, or graphics created by the SGPLOT procedure, the SGPANEL procedure, or the SGSCATTER procedure.
This option applies only to SAS programs that produce one or more device-based graphics, or graphics created by the SGPLOT procedure, the SGPANEL procedure, or the SGSCATTER procedure.
Use the HEADTEXT= option to define programs (such as JavaScript) that you can use later in the file.
<META your-metatext-is-here>
REPORT.XML
.
Additional body files are named REPORT1.XML
, REPORT2.XML
,
and so on.
Example:
BODY= 'MAY5.XML'
You must specify DYNAMIC next to the file-specification specified by the BODY=, CONTENTS=, PAGE=, FRAME=, or STYLESHEET= option, or next to the tagset-name specified by the TAGSET= option.
You must specify NO_BOTTOM_MATTER next to the file-specification specified by the BODY=, CONTENTS=, PAGE=, FRAME=, or STYLESHEET= option, or next to the tagset-name specified by the TAGSET= option.
If you append text to an external file, you must use a FILENAME statement with the appropriate option for the operating environment.
When you are opening a file that ODS has previously written to, use the ANCHOR= option to specify a new base name for the anchors. This step prevents duplicate anchors.
You must specify NO_TOP_MATTER next to the file-specification specified by the BODY=, CONTENTS=, PAGE=, FRAME=, or STYLESHEET= option, or next to the tagset-name specified by the TAGSET= option.
If you append text to an external file, you must use a FILENAME statement with the appropriate option for the operating environment.
When you are opening a file that ODS has previously written to, use the ANCHOR= option to specify a new base name for the anchors. This step prevents duplicate anchors.
You must enclose title-text in quotation marks.
You must enclose Uniform-Resource-Locator in quotation marks.
You must specify URL= 'Uniform-Resource-Locator' next to the file-specification specified by the BODY=, CONTENTS=, PAGE=, FRAME=, or STYLESHEET= option, or next to the tagset-name specified by the TAGSET= option.
You never need to specify this suboption with the FRAME= option because ODS files do not reference the frame file.
RECORD_SEPARATOR= '0D0A'x
RECORD_SEPARATOR= '0D25'x
RS=
You must specify DYNAMIC next to the file-specification specified by the BODY=, CONTENTS=, PAGE=, FRAME=, or STYLESHEET= option, or next to the tagset-name specified by the TAGSET= option.
You must specify NO_BOTTOM_MATTER next to the file-specification specified by the BODY=, CONTENTS=, PAGE=, FRAME=, or STYLESHEET= option, or next to the tagset-name specified by the TAGSET= option.
If you append text to an external file, you must use a FILENAME statement with the appropriate option for the operating environment.
When you are opening a file that ODS has previously written to, use the ANCHOR= option to specify a new base name for the anchors. This step prevents duplicate anchors.
You must specify NO_TOP_MATTER next to the file-specification specified by the BODY=, CONTENTS=, PAGE=, FRAME=, or STYLESHEET= option, or next to the tagset-name specified by the TAGSET= option.
If you append text to an external file, you must use a FILENAME statement with the appropriate option for the operating environment.
When you are opening a file that ODS has previously written to, use the ANCHOR= option to specify a new base name for the anchors. This step prevents duplicate anchors.
You must enclose title-text in quotation marks.
You must enclose Uniform-Resource-Locator in quotation marks.
You must specify URL= 'Uniform-Resource-Locator' next to the file-specification specified by the BODY=, CONTENTS=, PAGE=, FRAME=, or STYLESHEET= option, or next to the tagset-name specified by the TAGSET= option.
You never need to specify this suboption with the FRAME= option because ODS files do not reference the frame file.
proc template; list tagsets; run;
For additional information about specifying tagsets, see TEMPLATE Procedure: Creating Markup Language Tagsets.
The following suboptions can be used with these options: BODY= , CODE= , CONTENTS= , FRAME= , PAGE= , and STYLESHEET=.
You must specify DYNAMIC next to the file-specification specified by the BODY=, CONTENTS=, PAGE=, FRAME=, or STYLESHEET= option, or next to the tagset-name specified by the TAGSET= option.
You must specify NO_BOTTOM_MATTER next to the file-specification specified by the BODY=, CONTENTS=, PAGE=, FRAME=, or STYLESHEET= option, or next to the tagset-name specified by the TAGSET= option.
If you append text to an external file, you must use a FILENAME statement with the appropriate option for the operating environment.
When you are opening a file that ODS has previously written to, use the ANCHOR= option to specify a new base name for the anchors. This step prevents duplicate anchors.
You must specify NO_TOP_MATTER next to the file-specification specified by the BODY=, CONTENTS=, PAGE=, FRAME=, or STYLESHEET= option, or next to the tagset-name specified by the TAGSET= option.
If you append text to an external file, you must use a FILENAME statement with the appropriate option for the operating environment.
When you are opening a file that ODS has previously written to, use the ANCHOR= option to specify a new base name for the anchors. This step prevents duplicate anchors.
You must enclose title-text in quotation marks.
You must enclose Uniform-Resource-Locator in quotation marks.
You must specify URL= 'Uniform-Resource-Locator' next to the file-specification specified by the BODY=, CONTENTS=, PAGE=, FRAME=, or STYLESHEET= option, or next to the tagset-name specified by the TAGSET= option.
You never need to specify this suboption with the FRAME= option because ODS files do not reference the frame file.
ods markup body='class.html' tagset=phtml;
...more SAS statements...
ods phtml close;
ods tagsets.sasioxml body='test1.xml';
ods tagsets.mytagset body='test2.xml';
...more SAS statements...
ods _all_ close;
Features: |
ODS LISTING statement action:: CLOSE
|
Other features: |
PROC PRINT |
Data set: | StatePop |
ods markup body='population.xml';
proc print data=statepop; run;
ods markup close;
<?xml version="1.0" encoding="windows-1252"?> <odsxml> <head> <meta operator="user"/> </head> <body> <proc name="Univariate"> <label name="IDX"/> <title class="SystemTitle" toc-level="1">US Census of Population and Housing</title> <proc-title class="ProcTitle" toc-level="1">The UNIVARIATE Procedure</proc-title> <proc-title class="ProcTitle" toc-level="1">Variable: CityPop_90 (1990 metropolitan pop in millions)</proc-title> <branch name="Univariate" label="The Univariate Procedure" class="ContentProcName" toc-level="1"> <branch name="CityPop_90" label="CityPop_90" class="ContentFolder" toc-level="2"> <leaf name="Moments" label="Moments" class="ContentItem" toc-level="3"> <output name="Moments" label="Moments" clabel="Moments"> <output-object type="table" class="Table"> <style> <border spacing="1" padding="7" rules="groups" frame="box"/> </style> <colspecs columns="4"> <colgroup> <colspec name="1" width="15" type="string"/> <colspec name="2" width="10" align="right" type="string"/> <colspec name="3" width="16" type="string"/> <colspec name="4" width="10" align="right" type="string"/> </colgroup> </colspecs> ... more tagged output ... </output-object> </output> </leaf> </branch> </branch> <footnote class="SystemFooter" toc-level="1">^{super *}This is a ^S={foreground=black}footnote.</footnote> </proc> </body> </odsxml>
Features: |
ODS LISTING statement action:: CLOSE ODS MARKUP statement action:: CLOSE
|
Other features: |
PROC UNIVARIATE TITLE statement |
Data set: | StatePop |
ods html close;
ods markup body='statepop.xml' frame='statepop.dtd' tagset=default;
proc univariate data=statepop; var citypop_90 citypop_80; title 'US Census of Population and Housing'; run;
ods markup close;
proc univariate data=statepop; var citypop_90 citypop_80; title 'US Census of Population and Housing'; run;
<!ELEMENT odsxml (head?,body)> <!ELEMENT head (meta|css)*> <!ELEMENT body ((label|page)*|proc)+> <!ELEMENT meta EMPTY> <!ATTLIST meta operator CDATA #IMPLIED author CDATA #IMPLIED> <!ELEMENT css EMPTY> <!ATTLIST css file CDATA #IMPLIED> <!ELEMENT label EMPTY> <!ATTLIST label name ID #IMPLIED> <!ELEMENT proc (title|proc-title|note|page|label|style|branch|output)*> <!ATTLIST proc class CDATA #IMPLIED> ... more tagged output ... <!ELEMENT br EMPTY> <!ELEMENT page EMPTY> <!ELEMENT b (#PCDATA|it|b|ul)*> <!ELEMENT ul (#PCDATA|it|b|ul)*> <!ELEMENT it (#PCDATA|it|b|ul)*> <!ELEMENT style (span|align|border)*> <!ELEMENT span EMPTY> <!ATTLIST span columns CDATA #IMPLIED rows CDATA #IMPLIED> <!ELEMENT align EMPTY> <!ATTLIST align horiz (left|center|right|justify) "left"> <!ELEMENT border EMPTY> <!ATTLIST border rules (none|groups|rows|cols|all) #IMPLIED frame (void|above|below|hsides|lhs|rhs|vsides|box|border) #IMPLIED padding CDATA #IMPLIED spacing CDATA #IMPLIED>
Features: |
ODS LISTING statement action:: CLOSE ODS CVSALL statement option:: BODY=
|
Other features: |
OPTIONS statement PROC PRINT TITLE statement |
Data set: | Grain_Production |
ods html close; options obs=15;
ods csvall body='procprintcsvall.csv';
ods markup tagset=chtml body='procprintchtml.html'
(title= 'This Text Identifies Your Content.');
title 'Leading Grain-Producing Countries'; proc print data=grain_production; run;
ods csvall close; ods markup tagset=chtml close;
Features: |
ODS LISTING statement action:: CLOSE ODS HTML statement action:: CLOSE
|
Other features: |
OPTIONS statement PROC PRINT TITLE statement |
Data set: | Grain_Production |
ods html close; options obs=15;
ods html body='StylesheetExample.html' stylesheet=(url='/css/file1.css /css/file2.css');
proc print data=grain_production; title 'Leading Grain-Producing Countries'; run;
ods html close;
Features: |
|
Other features: |
PROC CONTENTS |
.body { background-color: white; color: black; font-family: times, serif; } .header, .rowheader, .footer, .rowfooter, .data { border: 1px black solid; color: black; padding: 5px; font-family: times, serif; } .header, .rowheader, .footer, .rowfooter { background-color: #a0a0a0; } .table { background-color: #dddddd; border-spacing: 0; border: 1px black solid; } .proctitle { font-family: helvetica, sans-serif; font-size: x-large; font-weight: normal; } @media screen { .header, .rowheader, .footer, .rowfooter,{ color: white; background-color: green;} .table { background-color: yellow; border-spacing: 0; font-size: small border: 1px black solid; } } @media print { .header, .rowheader, .footer, .rowfooter,{ color: white; background-color: blue; padding: 5px; } .data { font-size: small; } }
options nodate pageno=1 linesize=80 pagesize=40 obs=10; ods html file="StyleSheet.html" cssstyle='stylesheet.css'(screen) text="Style Sheet Using Screen Media Type"; ods rtf file="StyleSheet.rtf" cssstyle='stylesheet.css'(print) text="Style Sheet Using Print Media Type"; ods pdf file="StyleSheet.pdf" cssstyle='stylesheet.css'(print screen) STARTPAGE=no text="Style Sheet Using Both Media Types";
proc contents data=sashelp.class; run;
ods _all_ close;
options nodate pageno=1 linesize=80 pagesize=40 obs=10; ods html file="StyleSheet.html" cssstyle='stylesheet.css'(screen) text="Style Sheet Using Screen Media Type"; ods rtf file="StyleSheet.rtf" cssstyle='stylesheet.css'(print) text="Style Sheet Using Print Media Type"; ods pdf file="StyleSheet.pdf" cssstyle='stylesheet.css'(print screen) STARTPAGE=no text="Style Sheet Using Both Media Types";
Features: |
ODS TAGSETS.HTMLPANEL statement action:: CLOSE
|
Other features: |
PROC PRINT |
ods tagsets.panel file='Help.html' options (doc="help");
proc print data=Sashelp.Class; run;
ods _all_ close;