SAS.GRAPH 9.1 Reference, Volumes I and II

The language elements used by SAS/GRAPH programs include SAS/GRAPH procedures, SAS/GRAPH statements, and Annotate data sets. In addition to SAS/GRAPH language elements, your SAS/GRAPH program may include Base SAS statements and procedures that you use to process your data or control the destination or format of your program output.

SAS/GRAPH Procedures

SAS/GRAPH procedures create graphics output, process data for other SAS/GRAPH procedures to use, or manage graphics output that has been stored in a catalog. A SAS/GRAPH procedure step typically contains these statements:

PROC statement

Subordinate statements

RUN statement

In addition, many SAS/GRAPH procedures can use the following statements:

BY statement

NOTE statement

You can also use other SAS language statements with SAS/GRAPH procedures. See Other SAS Language Statements on page 27.

SAS/GRAPH Global Statements

SAS/GRAPH has its own set of statements that affect only graphics output that is generated by the SAS/GRAPH procedures and the graphics facilities Annotate and DSGI.

SAS/GRAPH global statements define or modify the titles, footnotes, legends, axes, symbols, and patterns that appear on your graphs, as well as controlling the appearance of the graph, the graphics environment, the destination of the output, and device characteristics.

You can specify these statements anywhere in your program, and they remain in effect until explicitly changed or canceled . These are the SAS/GRAPH global statements:

AXIS

GOPTIONS

LEGEND

PATTERN

SYMBOL

TITLE and FOOTNOTE

See Chapter 7, SAS/GRAPH Statements, on page 121 for complete descriptions of these statements.

Annotate DATA Step

An Annotate DATA step generates a data set of graphics commands that can be applied to SAS/GRAPH procedure output. See Chapter 24, Using Annotate Data Sets, on page 587 for information on building and using Annotate data sets. See Chapter 25, Annotate Dictionary, on page 613 for a complete description of all Annotate functions and variables .

Other SAS Language Statements

These SAS language statements can also be used within SAS/GRAPH procedures:

FILENAME statements

FORMAT statement

LABEL statement

LIBNAME statements

ODS statements

OPTIONS statement

QUIT statement

WHERE statement

For a complete description of these statements, see SAS Language Reference: Dictionary .

FILENAME Statement

The FILENAME statement associates a SAS fileref with an external text file or output device. With SAS/GRAPH software, you can use a FILENAME statement to

You can also use the FILENAME statement to route input to and from other devices. For details, see the SAS documentation for your operating environment.

A FILENAME statement that points to an external file has this general form:

FILENAME fileref external-file ;

fileref

external-file

For a complete description of the FILENAME statement, see SAS Language Reference: Dictionary .

LIBNAME Statement

The LIBNAME statement associates a libref with a SAS data library. A SAS data library can be either temporary or permanent. Typically, SAS data libraries used with SAS/GRAPH software contain

The LIBNAME statement has this general form:

LIBNAME libref SAS-data-library ;

libref

SAS-data-library

The libref WORK is reserved; it always points to an area where temporary data sets and catalogs are kept. The contents of WORK are deleted when you exit a SAS session.

For a complete description of the LIBNAME statement, see SAS Language Reference: Dictionary .

Категории