Chapter Contents

Previous

Next

Global Statements


Definition

Global statements generally provide information to SAS, request information or data, move between different modes of execution, or set values for system options. Other global statements (ODS statements) deliver output in a variety of formats, such as in Hypertext Markup Language (HTML). You can use global statements anywhere in a SAS program. Global statements are not executable; they take effect as soon as SAS compiles program statements.

Other SAS software products have additional global statements that are used with those products. For information, see the SAS documentation for those products.


Global Statements by Category

The following table lists and describes SAS global statements, organized by function into five categories:

Global Statements by Category
Statements in this category ... let you ...
DATA ACCESS associate reference names with SAS data libraries, SAS catalogs, external files and output devices, and access remote files.
OPERATING ENVIRONMENT access the operating environment directly.
LOG CONTROL alter the appearance of the SAS log.
OUTPUT CONTROL add titles and footnotes to your SAS output; deliver output in a variety of formats.
PROGRAM CONTROL govern the way SAS processes your SAS program.
WINDOW DISPLAY display and customize windows.

The following table provides brief descriptions of SAS global statements. For more detailed information, see the individual statements in SAS Language Reference: Dictionary.

Categories and Descriptions of Global Statements
Category Statement Description
Data Access CATNAME Logically combines two or more catalogs into one by associating them with a catref (a shortcut name); clears one or all catrefs; lists the concatenated catalogs in one concatenation or in all concatenations

FILENAME Associates a SAS fileref with an external file or an output device; disassociates a fileref and external file; lists attributes of external files

FILENAME, CATALOG Access Method References a SAS catalog as an external file

FILENAME, FTP Access Method Allows you to access remote files using the FTP protocol

FILENAME, SOCKET Access Method Allows you to read from or write to a TCP/IP socket

FILENAME, URL Access Method Allows you to access remote files using the URL access method

LIBNAME Associates or disassociates a SAS data library with a libref (a shortcut name); clears one or all librefs; lists the characteristics of a SAS data library; concatenates SAS data libraries; implicitly concatenates SAS catalogs.

LIBNAME, SAS/ACCESS Associates a SAS libref with a database management system (DBMS) database, schema, server, or group of tables or views
Log Control Comment Documents the purpose of the statement or program

PAGE Skips to a new page in the SAS log

SKIP Creates a blank line in the SAS log
Operating Environment X Issues an operating-environment command from within a SAS session
Output Control FOOTNOTE Prints up to ten lines of text at the bottom of the procedure or DATA step output

ODS EXCLUDE Specifies output objects to exclude from ODS destinations

ODS HTML Opens, manages, or closes the HTML destination. If the destination is open, you can create HTML output (output that is written in Hypertext Markup Language).

ODS LISTING Opens, manages, or closes the Listing destination

ODS OUTPUT Creates a SAS data set from an output object and manages the selection and exclusion lists for the Output destination

ODS PATH Specifies which locations to search for definitions that were created by PROC EMPLATE, as well as the order in which to search for them

ODS PRINTER Opens, manages, or closes the Printer destination. If the destination is open, you can create Printer output (output that is formatted for a high-resolution printer)

ODS SELECT Specifies output objects for ODS destinations

ODS SHOW Writes to the SAS log the specified selection or exclusion list

ODS TRACE Writes to the SAS log a record of each output object that is created, or suppresses the writing of this record

ODS VERIFY Prints or suppresses a warning that a style definition or a table definition that is used is not supplied by SAS Institute

TITLE Specifies title lines for SAS output
Program Control DM Submits SAS Program Editor, Log, Procedure Output or text editor commands as SAS statements

ENDSAS Terminates a SAS job or session after the current DATA or PROC step executes

%INCLUDE Brings a SAS programming statement, data lines, or both, into a current SAS program

%LIST Displays lines that are entered in the current session

OPTIONS Changes the value of one or more SAS system options

RUN Executes the previously entered SAS statements

%RUN Ends source statements following a %INCLUDE * statement
Window Display DISPLAY Displays a window that is created with the WINDOW statement

WINDOW Creates customized windows for your applications


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.