Chapter Contents

Previous

Next
SAS Language Reference: Dictionary

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. You can use them 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.
HOST SYSTEM access the operating environment directly.
LOG CONTROL alter the appearance of the SAS log.
OUTPUT CONTROL add titles and footnotes to your SAS output.
PROGRAM CONTROL govern the way SAS processes your SAS program.
WINDOW DISPLAY display and customize windows

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
Host System X
Issues an operating-environment command from within a SAS session
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
Output Control FOOTNOTE
Prints up to ten lines of text at the bottom of the procedure or DATA step output

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.