Previous Page | Next Page

Introduction to SAS/GRAPH Software

Conventions Used in This Document

This section explains the conventions this document uses for text, SAS language syntax, and file and library references. The document uses the following terms in discussing syntax:

keyword

is a literal that is a primary part of the SAS language. (A literal must be spelled exactly as shown, although it can be entered in uppercase or lowercase letters.) Keywords in this document are procedure names, statement names, macro names, routine names, and function names.

argument

is an element that follows a keyword. It is either literal, or it is user-supplied. It has a built-in value (for example, NODISPLAY), or it has a value assigned to it (for example, COLOR=text-color).

Arguments that you must use are required arguments. Other arguments are optional arguments, or simply options.

value

is an element that follows an equal sign. It assigns a value to an argument. It might be a literal, or it might be a user-supplied value.

parameter

is a value assigned to an argument that itself takes a value, for example, the COLOR= parameter of the LABEL= option in a LEGEND statement, as shown in the following statement:

legend label=(color=blue);

Syntax Conventions

Type styles have special meanings when used in the presentation of SAS/GRAPH syntax in this document. The following list explains the style conventions for the syntax sections:

UPPERCASE

identifies SAS keywords such as the names of statements and procedures (for example, PROC GCHART). Uppercase characters also identify arguments and values that are literals (for example, NOLEGEND and LABEL=NONE).

italic

identifies arguments or values that you supply. Items in italic can represent user-supplied values that are either

  • nonliteral values assigned to an argument (for example, axis-color in COLOR=axis-color)

  • nonliteral arguments (for example, VBAR chart-variable. . . ; ).

In addition, an item in italics can be the generic name for a list of arguments or parameters from which the user can choose (for example, appearance-options).

The following symbols are used to indicate other syntax conventions:

< > (angle brackets)

identify optional arguments. Any argument not enclosed in angle brackets is required.

| (vertical bar)

indicates that you can choose one value from a group. Values separated by bars are mutually exclusive.

. . . (ellipsis)

indicates that the argument following the ellipsis can be repeated any number of times (plot-request <. . . plot-request-n>, for example). If the ellipsis and the following argument are enclosed in angle brackets, they are optional. In SAS/GRAPH, an ellipsis also indicates a range from which a value is selected (LINE=1 . . . 46, for example).

The following examples illustrate the syntax conventions described in this section. These examples contain selected syntax elements, not complete syntax.

PROC GANNO ANNOTATE=Annotate-data-set
<DATASYS>;

SYMBOL <1 . . . 99>
<COLOR=symbol-color>
<MODE=EXCLUDE|INCLUDE>
<appearance-options>;

HBAR chart-variable< . . . chart-variable-n>
</ <PATTERNID=BY | GROUP | MIDPOINT | SUBGROUP>
<statistic-options>>;

When you are using an option, a statement, or a procedure whose syntax shows arguments or values in italics, you must supply the argument or value. When the argument or value is a font, color, or variable name, SAS/GRAPH expects valid font names, color names, and variable names. Consider the following four syntax samples:

FONT=font

COLOR=color

COLOR=text-color

PIE chart-variable < . . . chart-variable-n>;

Conventions for Examples and Output

Most of the chapters in this document include examples that illustrate some of the features of a procedure or its statements. Each example contains

The output that is shown for the examples was generated in a Windows operating environment. If you are using a different operating environment, you might need to make some minor adjustments to the example programs.

In most cases, the output was sent to the Listing destination and generated using the default style and device for that destination. Exceptions are noted in the text.

The dimensions of the graphics output area vary across devices and when using the GRAPH windows. The dimensions can affect aspects of the graphics output - for example, the appearance of axes or the position of graphics elements that use explicit coordinates in units other than percent. You might need to adjust the dimensions of your graphics output area or the size of graphics elements to correct any differences you see. Most of the images of output in this document were generated with a GOPTIONS statement that specified a size approximately equal 5.5 inches by 4.2 inches, although some images might be larger, if necessary, to accommodate the content of the graph.

goptions hsize=5.5inin vsize=4.2in;

These HSIZE= and VSIZE= settings are not shown in the example code and are not necessary for generating the output, but you might want to use similar settings if your output looks different from the output that is shown in the document.

Most examples specify these options:

RESET=ALL

sets all graphics options to default values and cancels all global statements.

BORDER

draws a border around the graphics output area.

Previous Page | Next Page | Top of Page