Statements Syntax Sorted by Category

Action

Name
Syntax and Description
ABORT <ABEND | CANCEL <FILE> | RETURN | > < n > <NOLIST> ;
Stops executing the current DATA step, SAS job, or SAS session.
Product: Base SAS
Document: SAS Language Reference: Dictionary
variable=expression;
Evaluates an expression and stores the result in a variable.
Product: Base SAS
Document: SAS Language Reference: Dictionary
CALL routine(parameter-1 <, …parameter-n > );
Invokes a SAS CALL routine.
Product: Base SAS
Document: SAS Language Reference: Dictionary
DECLARE APPENDER ("name", "FileRefAppender", "FILEREF =fileref"<, PATTERN: "pattern"> <, THRESHOLD: "threshold"> );
Declares an appender object; creates an instance of an appender object and initializes data for an appender object.
Product: Base SAS
Document: SAS Logging: Configuration and Programming Reference
DECLARE object object-reference; DECLARE object object-reference <(< argument_tag-1: value-1 <, …argument_tag-n: value-n > > )> ;
Declares a hash or hash iterator object; creates an instance of and initializes data for a hash or hash iterator object.
Product: Base SAS
Document: SAS Language Reference: Dictionary
DECLARE JAVAOBJ object-reference; DECLARE JAVAOBJ object-reference ("java-class", < argument-1 , … argument-n > );
Declares a Java object; creates an instance of and initializes data for a Java object.
Product: Base SAS
Document: SAS Language Reference: Dictionary
DECLARE LOGGER ("name" <, ADDITIVITY: TRUE | FALSE> <, LEVEL: "level"> <, APPENDERREF:" appender-name"<…, APPENDERREF: "appender-name"> > );
Declares a logger object; creates an instance of a logger object and initializes data for a logger object.
Product: Base SAS
Document: SAS Logging: Configuration and Programming Reference
DELETE;
Stops processing the current observation.
Product: Base SAS
Document: SAS Language Reference: Dictionary
DESCRIBE;
Retrieves source code from a stored compiled DATA step program or a DATA step view.
Product: Base SAS
Document: SAS Language Reference: Dictionary
ERROR < message > ;
Sets _ERROR_ to 1. A message written to the SAS log is optional.
Product: Base SAS
Document: SAS Language Reference: Dictionary
EXECUTE;
Executes a stored compiled DATA step program .
Product: Base SAS
Document: SAS Language Reference: Dictionary
IF expression;
Continues processing only those observations that meet the condition of the specified expression.
Product: Base SAS
Document: SAS Language Reference: Dictionary
LIST;
Writes to the SAS log the input data record for the observation that is being processed.
Product: Base SAS
Document: SAS Language Reference: Dictionary
LOSTCARD;
Resynchronizes the input data when SAS encounters a missing or invalid record in data that has multiple records per observation.
Product: Base SAS
Document: SAS Language Reference: Dictionary
; or ;;;;
Signals the end of data lines or acts as a placeholder.
Product: Base SAS
Document: SAS Language Reference: Dictionary
OUTPUT < data-set-name(s) > ;
Writes the current observation to a SAS data set.
Product: Base SAS
Document: SAS Language Reference: Dictionary
PUTLOG 'message';
Writes a message to the SAS log.
Product: Base SAS
Document: SAS Language Reference: Dictionary
REDIRECT INPUT | OUTPUT old-name-1 = new-name-1 <. . . old-name-n = new-name-n > ;
Points to different input or output SAS data sets when you execute a stored program.
Product: Base SAS
Document: SAS Language Reference: Dictionary
REMOVE < data-set-name(s) > ;
Deletes an observation from a SAS data set.
Product: Base SAS
Document: SAS Language Reference: Dictionary
REPLACE < data-set-name-1 > <. . .data-set-name-n > ;
Replaces an observation in the same location.
Product: Base SAS
Document: SAS Language Reference: Dictionary
STOP;
Stops execution of the current DATA step.
Product: Base SAS
Document: SAS Language Reference: Dictionary
variable+expression;
Adds the result of an expression to an accumulator variable.
Product: Base SAS
Document: SAS Language Reference: Dictionary
WHERE where-expression-1 < logical-operator where-expression-n > ;
Selects observations from SAS data sets that meet a particular condition.
Product: Base SAS
Document: SAS Language Reference: Dictionary

Control

Name
Syntax and Description
CONTINUE;
Stops processing the current DO-loop iteration and resumes processing the next iteration.
Product: Base SAS
Document: SAS Language Reference: Dictionary
DO; ...more SAS statements... END;
Specifies a group of statements to be executed as a unit.
Product: Base SAS
Document: SAS Language Reference: Dictionary
DO index-variable=specification-1 <, . . . specification-n > ; . . . more SAS statements . . . END;
Executes statements between the DO and END statements repetitively, based on the value of an index variable.
Product: Base SAS
Document: SAS Language Reference: Dictionary
DO UNTIL (expression);...more SAS statements... END;
Executes statements in a DO loop repetitively until a condition is true.
Product: Base SAS
Document: SAS Language Reference: Dictionary
DO WHILE (expression);...more SAS statements... END;
Executes statements in a DO-loop repetitively while a condition is true.
Product: Base SAS
Document: SAS Language Reference: Dictionary
END;
Ends a DO group or SELECT group processing.
Product: Base SAS
Document: SAS Language Reference: Dictionary
GO TO label;
Directs program execution immediately to the statement label that is specified and, if followed by a RETURN statement, returns execution to the beginning of the DATA step.
Product: Base SAS
Document: SAS Language Reference: Dictionary
IF expression THEN statement; < statement;>
Executes a SAS statement for observations that meet specific conditions.
Product: Base SAS
Document: SAS Language Reference: Dictionary
LEAVE;
Stops processing the current loop and resumes with the next statement in the sequence.
Product: Base SAS
Document: SAS Language Reference: Dictionary
LINK label;
Directs program execution immediately to the statement label that is specified and, if followed by a RETURN statement, returns execution to the statement that follows the LINK statement.
Product: Base SAS
Document: SAS Language Reference: Dictionary
label: statement;
Identifies a statement that is referred to by another statement.
Product: Base SAS
Document: SAS Language Reference: Dictionary
RETURN;
Stops executing statements at the current point in the DATA step and returns to a predetermined point in the step.
Product: Base SAS
Document: SAS Language Reference: Dictionary
SELECT <(select-expression)> ; WHEN-1 (when-expression-1 <..., when-expression-n > ) statement; <... -n (when-expression-1 <..., when-expression-n > ) statement;> < statement;> END;
Executes one of several statements or groups of statements.
Product: Base SAS
Document: SAS Language Reference: Dictionary

Data Access

Name
Syntax and Description
CATNAME < libref. > catref < (libref-1.catalog-1 <(ACCESS=READONLY)> <...libref-n.catalog–n <(ACCESS=READONLY)> )> ; CATNAME < libref. > catref CLEAR | _ALL_ CLEAR; CATNAME < libref. > catref LIST | _ALL_ LIST;
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.
Product: Base SAS
Document: SAS Language Reference: Dictionary
FILENAME fileref < device-type > 'external-file' <ENCODING='encoding-value'> < options > < operating-environment-options > ; FILENAME fileref < device-type > < options > < operating-environment-options > ; FILENAME fileref CLEAR | _ALL_ CLEAR; FILENAME fileref LIST | _ALL_ LIST;
Associates a SAS fileref with an external file or an output device, disassociates a fileref and external file, or lists attributes of external files.
Product: Base SAS
Document: SAS Language Reference: Dictionary
FILENAME fileref CATALOG 'catalog' < catalog-options > ;
Enables you to reference a SAS catalog as an external file.
Product: Base SAS
Document: SAS Language Reference: Dictionary
FILENAME fileref EMAIL <'address' > < email-options > ;
Enables you to send electronic mail programmatically from SAS using the SMTP (Simple Mail Transfer Protocol) e-mail interface.
Product: Base SAS
Document: SAS Language Reference: Dictionary
FILENAME fileref FTP 'external-file' < ftp-options > ;
Enables you to access remote files by using the FTP protocol.
Product: Base SAS
Document: SAS Language Reference: Dictionary
FILENAME fileref SFTP 'external-file' < sftp-options > ;
Enables you to access remote files by using the SFTP protocol.
Product: Base SAS
Document: SAS Language Reference: Dictionary
FILENAME fileref SOCKET 'hostname:portno' < tcpip-options > ; FILENAME fileref SOCKET ':portno' SERVER< tcpip-options > ;
Enables you to read from or write to a TCP/IP socket.
Product: Base SAS
Document: SAS Language Reference: Dictionary
FILENAME fileref URL 'external-file' < url-options > ;
Enables you to access remote files by using the URL access method.
Product: Base SAS
Document: SAS Language Reference: Dictionary
FILENAME filref WEBDAV 'external-file' < webdav-options > ;
Enables you to access remote files by using the WebDAV protocol.
Product: Base SAS
Document: SAS Language Reference: Dictionary
FILENAME fileref CLIPBRD <BUFFER=paste-buffer-name > ;
Enables you to read text data from and write text data to the clipboard on the host computer.
Product: Base SAS
Document: SAS Language Reference: Dictionary
LIBNAME libref < engine > < 'SAS-library'> SERVER=server-ID < options > < engine/operating environment-options > ;
Associates a libref (a shortcut name) with a SAS library that is located on the server for client access.
Product: SAS/CONNECT
Document: SAS/CONNECT User's Guide
LIBNAME libref < engine > 'SAS-library' < options > < engine/host-options > ; LIBNAME libref CLEAR | _ALL_ CLEAR; LIBNAME libref LIST | _ALL_ LIST; LIBNAME libref < engine > (library-specification-1 < . . . library-specification-n > ) < options > ;
Associates or disassociates a SAS library with a libref (a shortcut name), clears one or all librefs, lists the characteristics of a SAS library, concatenates SAS libraries, or concatenates SAS catalogs.
Product: Base SAS
Document: SAS Language Reference: Dictionary
LIBNAME libref < engine > 'SAS-library' < options > WEBDAV USER="user-ID" PASSWORD="user-password" WEBDAV options; LIBNAME libref CLEAR | _ALL_ CLEAR; LIBNAME libref LIST | _ALL_ LIST;
Associates a libref with a SAS library and enables access to a WebDAV (Web-based Distributed Authoring And Versioning) server.
Product: Base SAS
Document: SAS Language Reference: Dictionary
LIBNAME libref SASESOCK “port-specifier <TIMEOUT=time-in-seconds > ;
Associates a libref with a TCP/IP pipe (instead of a physical disk device) for processing input and output. The SASESOCK engine is required for SAS/CONNECT applications that implement MP CONNECT with piping.
Product: SAS/CONNECT
Document: SAS/CONNECT User's Guide
ODS PACKAGE (<name> ) OPEN < options > ; ODS PACKAGE (<name> ) ADD FILE=”file-specification” | DATA=member-specification MIMETYPE=''string<PATH=”path-specification”> < options > ; ODS PACKAGE (<name> ) PUBLISH transport PROPERTIES(transport-property-1=”value-1”transport-property-n=”value-n”); ODS PACKAGE (<name> ) CLOSE <CLEAR> ;
The ODS PACKAGE statement opens, adds to, publishes, or closes one SAS Output Delivery System (ODS) package object.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide

File-Handling

Name
Syntax and Description
BY <DESCENDING> variable-1 <…<DESCENDING> variable-n > <NOTSORTED> <GROUPFORMAT> ;
Controls the operation of a SET, MERGE, MODIFY, or UPDATE statement in the DATA step and sets up special grouping variables.
Product: Base SAS
Document: SAS Language Reference: Dictionary
DATA < data-set-name-1 <(data-set-options-1)> > < … data-set-name-n <(data-set-options-n)> > </ <DEBUG> <NESTING> <STACK = stack-size > > <NOLIST> ; DATA _NULL_ </ <DEBUG> <NESTING> <STACK = stack-size > > <NOLIST> ; DATA view-name < data-set-name-1 <(data-set-options-1)> > < … data-set-name-n <(data-set-options-n)> > / VIEW=view-name <(< password-option > <SOURCE=source-option > )> <NESTING> <NOLIST> ; DATA data-set-name / PGM=program-name <(< password-option > <SOURCE=source-option > )> <NESTING> <NOLIST> ; DATA VIEW=view-name <(password-option)> <NOLIST> ; DESCRIBE; DATA PGM=program-name <(password-option)> <NOLIST> ; <;> < INPUT | OUTPUT old-name-1 = new-name-1 <… old-name-n = new-name-n > ;> <;>
Begins a DATA step and provides names for any output SAS data sets, views, or programs.
Product: Base SAS
Document: SAS Language Reference: Dictionary
DATALINES;
Specifies that data lines follow.
Product: Base SAS
Document: SAS Language Reference: Dictionary
DATALINES4;
Indicates that data lines that contain semicolons follow.
Product: Base SAS
Document: SAS Language Reference: Dictionary
FILE file-specification < device-type > < options > < operating-environment-options > ;
Specifies the current output file for PUT statements.
Product: Base SAS
Document: SAS Language Reference: Dictionary
FILE PRINT ODS <=(ODS-suboption(s))> < options > ;
Creates an ODS output object by binding the data component to the table definition (template). As an option, the FILE Statement lists the variables to include in the ODS output, and it specifies options that control the way that the variables are formatted.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide
INFILE file-specification < device-type > < options > < operating-environment-options > ; INFILE DBMS-specifications;
Specifies an external file to read with an INPUT statement.
Product: Base SAS
Document: SAS Language Reference: Dictionary
INPUT < specification(s) > <@|@@> ;
Describes the arrangement of values in the input data record and assigns input values to the corresponding SAS variables.
Product: Base SAS
Document: SAS Language Reference: Dictionary
INPUT variable <$> start-column <– end-column > <.decimals > <@ | @@> ;
Reads input values from specified columns and assigns them to the corresponding SAS variables.
Product: Base SAS
Document: SAS Language Reference: Dictionary
INPUT < pointer-control > variable informat. <@ | @@> ; INPUT < pointer-control > (variable-list) (informat-list) <@ | @@> ; INPUT < pointer-control > (variable-list) (< n*> informat.) <@ | @@> ;
Reads input values with specified informats and assigns them to the corresponding SAS variables.
Product: Base SAS
Document: SAS Language Reference: Dictionary
INPUT < pointer-control > variable <$> <&> <@ | @@> ; INPUT < pointer-control > variable <:|&|~> < informat. > <@ | @@> ;
Scans the input data record for input values and assigns them to the corresponding SAS variables.
Product: Base SAS
Document: SAS Language Reference: Dictionary
INPUT < pointer-control > variable= <$> <@ | @@> ; INPUT < pointer-control > variable= informat. <@ | @@> ; INPUT variable= <$> start-column <-end-column > <.decimals > <@ | @@> ;
Reads data values that appear after a variable name that is followed by an equal sign and assigns them to corresponding SAS variables.
Product: Base SAS
Document: SAS Language Reference: Dictionary
MERGE SAS-data-set-1 <(data-set-options)> SAS-data-set-2 <(data-set-options) > <…SAS-data-set-n <(data-set-options)> > <END=variable > ;
Joins observations from two or more SAS data sets into a single observation.
Product: Base SAS
Document: SAS Language Reference: Dictionary
MODIFY master-data-set <(data-set-option(s))> transaction-data-set <(data-set-option(s))> <NOBS=variable > <END=variable > <UPDATEMODE=MISSINGCHECK|NOMISSINGCHECK> ;BY by-variable; MODIFY master-data-set <(data-set-option(s))> KEY=index </ UNIQUE> <NOBS=variable > <END=variable > ; MODIFY master-data-set <(data-set-option(s))> <NOBS=variable > POINT=variable; MODIFY master-data-set <(data-set-option(s))> <NOBS=variable > <END=variable > ;
Replaces, deletes, and appends observations in an existing SAS data set in place but does not create an additional copy.
Product: Base SAS
Document: SAS Language Reference: Dictionary
PUT < specification(s) > <_ODS_> <@|@@> ;
Writes lines to the SAS log, to the SAS output window, or to an external location that is specified in the most recent FILE statement.
Product: Base SAS
Document: SAS Language Reference: Dictionary
PUT < specification > <_ODS_> <@|@@> ;
Writes data values to a special buffer from which they can be written to the data component and then formatted by ODS.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide
PUT variable start-column <— end-column > <.decimal–places > <@ | @@> ;
Writes variable values in the specified columns in the output line.
Product: Base SAS
Document: SAS Language Reference: Dictionary
PUT < pointer-control > variable format. <@ | @@> ; PUT < pointer-control > (variable-list) (format-list) <@ | @@> ;
Writes variable values with the specified format in the output line.
Product: Base SAS
Document: SAS Language Reference: Dictionary
PUT < pointer-control > variable <@ | @@> ; PUT < pointer-control > < n*> 'character-string' <@ | @@> ; PUT < pointer-control > variable <: | ~> format. <@ | @@> ;
Writes variable values and the specified character strings in the output line.
Product: Base SAS
Document: SAS Language Reference: Dictionary
PUT < pointer-control > variable= < format. > <@ | @@> ; PUT variable= start-column <— end-column > < .decimal-places > <@ | @@> ;
Writes variable values after the variable name and an equal sign.
Product: Base SAS
Document: SAS Language Reference: Dictionary
SET < SAS-data-set(s) <(data-set-options(s) )> > < options > ;
Reads an observation from one or more SAS data sets.
Product: Base SAS
Document: SAS Language Reference: Dictionary
UPDATE master-data-set <(data-set-options)> transaction-data-set <(data-set-options)> <END=variable > <UPDATEMODE= MISSINGCHECK|NOMISSINGCHECK> ; BY by-variable;
Updates a master file by applying transactions.
Product: Base SAS
Document: SAS Language Reference: Dictionary

Information

Name
Syntax and Description
ARRAY array-name { subscript } <$> < length > < array-elements > <(initial-value-list)> ;
Defines the elements of an array.
Product: Base SAS
Document: SAS Language Reference: Dictionary
ATTRIB variable-list(s) attribute-list(s) ;
Associates a format, informat, label, and length with one or more variables.
Product: Base SAS
Document: SAS Language Reference: Dictionary
array-name { subscript }
Describes the elements in an array to be processed.
Product: Base SAS
Document: SAS Language Reference: Dictionary
DROP variable-list;
Excludes variables from output SAS data sets.
Product: Base SAS
Document: SAS Language Reference: Dictionary
FORMAT variable-1 < . . . variable-n > < format > <DEFAULT=default-format > ; FORMAT variable-1 < . . . variable-n > format <DEFAULT=default-format > ; FORMAT variable-1 < . . . variable-n > format variable-1 < . . . variable-n > format;
Associates formats with variables.
Product: Base SAS
Document: SAS Language Reference: Dictionary
INFORMAT variable-1 < …variable-n > < informat > ; INFORMAT < variable-1 > < … variable-n > <DEFAULT=default-informat > ; INFORMAT variable-1 < …variable-n > informat <DEFAULT=default-informat > ;
Associates informats with variables.
Product: Base SAS
Document: SAS Language Reference: Dictionary
KEEP variable-list;
Specifies the variables to include in output SAS data sets.
Product: Base SAS
Document: SAS Language Reference: Dictionary
LABEL variable-1=label-1 . . . < variable-n=label-n > ; LABEL variable-1=' '< variable-n=' ' > ;
Assigns descriptive labels to variables.
Product: Base SAS
Document: SAS Language Reference: Dictionary
LENGTH variable-specification(s) <DEFAULT=n > ;
Specifies the number of bytes for storing variables.
Product: Base SAS
Document: SAS Language Reference: Dictionary
MISSING character(s);
Assigns characters in your input data to represent special missing values for numeric data.
Product: Base SAS
Document: SAS Language Reference: Dictionary
RENAME old-name-1=new-name-1 . . . < old-name-n=new-name-n > ;
Specifies new names for variables in output SAS data sets.
Product: Base SAS
Document: SAS Language Reference: Dictionary
RETAIN < element-list(s) < initial-value(s) | (initial-value-1) | (initial-value-list-1) > < . . . element-list-n < initial-value-n | (initial-value-n ) | (initial-value-list-n)> > > ;
Causes a variable that is created by an INPUT or assignment statement to retain its value from one iteration of the DATA step to the next.
Product: Base SAS
Document: SAS Language Reference: Dictionary

Log Control

Name
Syntax and Description
* message; or /*message*/
Specifies the purpose of the statement or program.
Product: Base SAS
Document: SAS Language Reference: Dictionary
PAGE;
Skips to a new page in the SAS log.
Product: Base SAS
Document: SAS Language Reference: Dictionary
SKIP < n > ;
Creates a blank line in the SAS log.
Product: Base SAS
Document: SAS Language Reference: Dictionary

ODS: Output Control

Name
Syntax and Description
LIBNAME libref SASEDOC 'path' <sasedoc-engine-option> < options > ;
Uses the SASEDOC engine to associate a SAS libref (library reference) with one or more ODS output objects that are stored in an ODS document.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide
ODS DOCUMENT action; ODS DOCUMENT < < libref. > member-name <(access–option)> > <=(<=path <(access-option)> <=“label”> > )> <=permanent-catalog | _NULL_> ;
Opens, manages, or closes the DOCUMENT destination, which produces a hierarchy of output objects that enables you to produce multiple ODS output formats without rerunning a PROC or DATA step.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide
ODS ESCAPECHAR= 'escape-character';
Defines a representative character to be used in output strings.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide
ODS < ODS-destination > EXCLUDE exclusion(s)| ALL | NONE;
Specifies output objects to exclude from ODS destinations.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide
ODS GRAPHICS <OFF | ON> </ option(s) > ;
Enables or disables ODS graphics processing and sets graphics environment options. This statement affects ODS template-based graphics only. The ODS GRAPHICS statement does not affect device-based graphics.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide
PATH <(APPEND) | (PREPEND) | (REMOVE) > location(s); PATH path-argument;
Specifies locations to write to or read from when creating or using PROC TEMPLATE definitions and the order in which to search for them.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide
ODS PROCLABEL 'string';
Enables you to change a procedure label.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide
ODS PROCTITLE | NOPROCTITLE;
Determines whether to write the title that identifies the procedure that produces the results in the output.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide
ODS RESULTS ON | OFF;
Tracks ODS output in the Results window.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide
ODS < ODS-destination > SELECT selection(s) | ALL | NONE;
Specifies output objects for ODS destinations.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide
ODS < ODS-destination > SHOW;
Writes the specified selection or exclusion list to the SAS log.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide
ODS TEXT= 'text-string'
Inserts text into your ODS output.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide
ODS TRACE ON</option(s) > ; ODS TRACE OFF;
Writes to the SAS log a record of each output object that is created, or suppresses the writing of this record.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide
ODS USEGOPT | NOUSEGOPT;
Determines whether ODS uses traditional SAS/GRAPH option settings.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide
ODS VERIFY <ON | OFF | ERROR | WARN> ;
Prints or suppresses a message indicating that a style definition or a table definition being used is not supplied by SAS.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide
ODS _ALL_ CLOSE;
Closes all open ODS output destinations.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide

ODS: SAS Formatted

Name
Syntax and Description
ODS DECIMAL_ALIGN | NO_DECIMAL_ALIGN;
Controls the justification of numeric columns when no justification is specified.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide
ODS LISTING < action > ; ODS LISTING <DATAPANEL=number | DATA | PAGE > <FILE=file-specification > ;
Opens, manages, or closes the LISTING destination.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide
ODS OUTPUT action; ODS OUTPUT data-set-definition(s);
Produces a SAS data set from an output object and manages the selection and exclusion lists for the OUTPUT destination.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide

ODS: Third-Party Formatted

Name
Syntax and Description
ODS CHTML <(<ID=> identifier)> < action > ; ODS CHTML <(<ID=> identifier)> < option(s) > ;
Opens, manages, or closes the CHTML destination, which produces a compact, minimal HTML that does not use style information.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide
ODS CSVALL < (<ID=> identifier)> < action > ; ODS CSVALL <(<ID=> identifier)> < option(s) > ;
Opens, manages, or closes the CSVALL destination, which produces HTML output containing columns of data values that are separated by commas, and produces tabular output with titles, notes, and bylines.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide
ODS DOCBOOK < (<ID=> identifier)> < action > ; ODS DOCBOOK <(<ID=> identifier)> < option(s) > ;
Opens, manages, or closes the DOCBOOK destination, which produces XML output that conforms to the DocBook DTD by OASIS.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide
ODS HTML <(<ID=> identifier)> < action > ; ODS HTML <(<ID=> identifier)> < option(s) > ;
Opens, manages, or closes the HTML destination, which produces HTML 4.0 output that contains embedded style sheets.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide
ODS HTML3 <(<ID=> identifier)> < action > ; ODS HTML3 <(<ID=> identifier)> < option(s) > ;
Opens, manages, or closes the HTML3 destination, which produces HTML 3.2 formatted output.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide
ODS HTMLCSS < (<ID=> identifier)> < action > ; ODS HTMLCSS < (<ID=> identifier)> < option(s) > ;
Opens, manages, or closes the HTMLCSS destination, which produces HTML output with cascading style sheets.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide
ODS IMODE < (<ID=> identifier)> < action > ; ODS IMODE (<ID=> identifier) < option(s) > ;
Opens, manages, or closes the IMODE destination, which produces HTML output as a column of output, separated by lines.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide
ODS MARKUP <(<ID=> identifier)> < action > ; ODS MARKUP <(<ID=> identifier)> < option(s) > <TAGSET=tagset-name > < action > ;
Opens, manages, or closes the MARKUP destination, which produces SAS output that is formatted using one of many different markup languages.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide
ODS PCL <(<ID=> identifier)> < action > ; ODS PCL <(<ID=> identifier)> < option(s) > ;
Opens, manages, or closes the PCL destination, which produces printable output for PCL (HP LaserJet) files.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide
ODS PDF <(<ID=> identifier)> < action > ; ODS PDF <(<ID=> identifier)> < option(s) > ;
Opens, manages, or closes the PDF destination, which produces PDF output, a form of output that is read by Adobe Acrobat and other applications.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide
ODS PHTML action; ODS PHTML < option(s) > ;
Opens, manages, or closes the PHTML destination, which produces simple HTML output that uses twelve style elements and no class attributes for the presentation. Class attributes are used only for the justification.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide
ODS PRINTER <(<ID=> identifier)> < action > ; ODS PRINTER <(<ID=> identifier)> < option(s) > ;
Opens, manages, or closes the PRINTER destination, which produces printable output.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide
ODS PS <(<ID=> identifier)> < action > ; ODS PS <(<ID=> identifier)> < option(s) > ;
Opens, manages, or closes the PS destination, which produces PostScript (PS) output.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide
ODS RTF <(<ID=> identifier)> action; ODS RTF <(<ID=> identifier)> < option(s) > ;
Opens, manages, or closes the RTF destination, which produces output written in Rich Text Format for use with Microsoft Word 2002.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide
ODS TAGSETS.RTF <(<ID=> identifier)> action; ODS TAGSETS.RTF <(<ID=> identifier)> < option(s) > ;
Opens, manages, or closes the RTF destination, which produces measured output that is written in Rich Text Format for use with Microsoft Word 2002.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide
ODS directory.tagset-name file-specification < option(s) > ; ODS directory.tagset-name file-specification action;
Opens, manages, or closes the specified tagset destination.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide
ODS WML < (<ID=> identifier)> action; ODS WML < (<ID=> identifier)> < option(s) > ;
Opens, manages, or closes the WML destination, which uses the Wireless Application Protocol (WAP) to produce a Wireless Markup Language (WML) DTD with a simple list for a table of contents.
Product: Base SAS
Document: SAS Output Delivery System: User's Guide

Operating Environment

Name
Syntax and Description
X <'operating-environment-command'> ;
Issues an operating-environment command from within a SAS session.
Product: Base SAS
Document: SAS Language Reference: Dictionary

Output Control

Name
Syntax and Description
FOOTNOTE < n > < ods-format-options > <'text' | “text” > ;
Writes up to 10 lines of text at the bottom of the procedure or DATA step output.
Product: Base SAS
Document: SAS Language Reference: Dictionary
TITLE < n > < ods-format-options > <'text' | “text”> ;
Specifies title lines for SAS output.
Product: Base SAS
Document: SAS Language Reference: Dictionary

Program Control

Name
Syntax and Description
%INCLUDE source(s) </<SOURCE2> <S2=length > < operating-environment-options > > ;
Brings a SAS programming statement, data lines, or both, into a current SAS program.
Product: Base SAS
Document: SAS Language Reference: Dictionary
%LIST < n <:m | − m > > ;
Displays lines that are entered in the current session.
Product: Base SAS
Document: SAS Language Reference: Dictionary
%RUN;
Ends source statements following a %INCLUDE * statement.
Product: Base SAS
Document: SAS Language Reference: Dictionary
CHECKPOINT EXECUTE_ALWAYS;
Indicates to execute the DATA step or PROC step that immediately follows without considering the checkpoint-restart data.
Product: Base SAS
Document: SAS Language Reference: Dictionary
DM < window > 'command(s)' < window > <CONTINUE> ;
Submits SAS Program Editor, Log, Procedure Output or text editor commands as SAS statements.
Product: Base SAS
Document: SAS Language Reference: Dictionary
ENDSAS;
Terminates a SAS job or session after the current DATA or PROC step executes.
Product: Base SAS
Document: SAS Language Reference: Dictionary
LOCK libref <.member-name <.member-type | .entry-name.entry-type > > <LIST | QUERY | SHOW | CLEAR> ;
Acquires and releases an exclusive lock on an existing SAS file.
Product: Base SAS
Document: SAS Language Reference: Dictionary
OPTIONS option(s);
Specifies or changes the value of one or more SAS system options.
Product: Base SAS
Document: SAS Language Reference: Dictionary
RUN <CANCEL> ;
Executes the previously entered SAS statements.
Product: Base SAS
Document: SAS Language Reference: Dictionary
SASFILE < libref.> member-name <.member-type > <(password-option(s))> OPEN | LOAD | CLOSE ;
Opens a SAS data set and allocates enough buffers to hold the entire file in memory.
Product: Base SAS
Document: SAS Language Reference: Dictionary
SYSECHO <"text"> ;
Fires a global statement complete event and passes a text string back to the IOM client.
Product: Base SAS
Document: SAS Language Reference: Dictionary

Window Display

Name
Syntax and Description
DISPLAY window < .group > <NOINPUT > <BLANK > <BELL > <DELETE> ;
Displays a window that is created with the WINDOW statement.
Product: Base SAS
Document: SAS Language Reference: Dictionary
WINDOW window < window-options > field-definition(s); WINDOW window < window-options > group-definition(s);
Creates customized windows for your applications.
Product: Base SAS
Document: SAS Language Reference: Dictionary