Previous Page | Next Page

Dictionary of ODS Language Statements

ODS USEGOPT Statement



Determines whether ODS uses traditional SAS/GRAPH option settings.
Valid: anywhere
Category: ODS: Output Control
See also: SAS/GRAPH: Reference
Restriction: The ODS USEGOPTS option has no effect on graphics produced as a result of any of the ODS graphics functionality or the ODS GRAPHICS statement.

Syntax
Details
Enabling Traditional SAS/GRAPH Graphics Options
Examples
Example 1: Enabling and Disabling Graphics Options

Syntax

ODS USEGOPT | NOUSEGOPT;

ODS USEGOPT

specifies that ODS use traditional SAS/GRAPH option settings for non-graphical output.

ODS NOUSEGOPT

specifies that ODS not use traditional SAS/GRAPH option settings for non-graphical output.


Details


Enabling Traditional SAS/GRAPH Graphics Options

While ODS USEGOPT is in effect, the settings for the following graphics options will affect all of your ODS output, including tables:

CTEXT=

CTITLE=

FTITLE=

FTEXT=

HTEXT=

HTITLE=

If ODS NOUSEGOPT is in effect, the settings for these graphics options will not override the value in the style definition for titles and footnotes in your ODS output.

Examples


Example 1: Enabling and Disabling Graphics Options

ODS features:

ODS HTML statement:

FILE=

ODS LISTING statement:

CLOSE

ODS NOUSEGOPT statement

ODS USEGOPT statement

Other SAS features:

GOPTIONS statement:

FCTEXT=

FTITLE=

HTEXT=

PROC PRINT

TITLE statement

Data set:

Exprev.


Program Description

This example creates two HTML reports, one with the GOPTIONS enabled by using the ODS USEGOPT statement, and one with GOPTIONS disabled by using the ODS NOUSEGOPT statement.


Program

 Note about code
goptions reset=all  htext=2 ftitle=script ftext=script;
 Note about code
ods listing close;
 Note about code
ods usegopt;
 Note about code
ods html file='opts.html';
title 'This Title Was Created With the USEGOPT Option Specified ' ;
title2 'The Graphics Option Settings are Turned On';
proc print data=exprev(obs=2);
run; 
 Note about code
ods nousegopt;
 Note about code
title 'This Title Was Created With the NOUSEGOPT Option Specified' ;
title2 'The Graphics Option Settings are Turned Off';
proc print data=exprev (obs=2) ;
run;
 Note about code
ods html close;
ods listing;

HTML Output

 Note about figure

[HTML Output]

Previous Page | Next Page | Top of Page