DATA Step Statements

Executable and Declarative Statements

DATA step statements are executable or declarative statements that can appear in the DATA step. Executable statements result in some action during individual iterations of the DATA step; declarative statements supply information to SAS and take effect when the system compiles program statements.
The following tables show the SAS executable and declarative statements that you can use in the DATA step.
Executable Statements in the DATA Step
Executable Statements
ABORT
IF, Subsetting
PUT, Column
Array Reference
IF-THEN/ELSE
PUT, Formatted
Assignment
INFILE
PUT, List
CALL
INPUT
PUT, Named
CONTINUE
GO TO
PUT
DECLARE
INPUT, Column
PUT, ODS
DELETE
INPUT, Formatted
PUTLOG
DESCRIBE
INPUT, List
REDIRECT
DISPLAY
INPUT, Named
REMOVE
DO
LEAVE
REPLACE
DO, Iterative
LINK
RESETLINE
DO UNTIL
LIST
RETURN
DO WHILE
LOSTCARD
SELECT
ERROR
MERGE
SET
EXECUTE
MODIFY
STOP
FILE
Null
Sum
FILE, ODS
OUTPUT
UPDATE
Declarative Statements in the DATA Step
Declarative Statements
ARRAY
DATALINES4
Labels, Statement
ATTRIB
DROP
LENGTH
BY
END
RENAME
CARDS
FORMAT
RETAIN
CARDS4
INFORMAT
WHERE
DATA
KEEP
WINDOW
DATALINES
LABEL
DATA step statements can be grouped into six functional categories. For a list of DATA step statements by category, see DATA Step Statements by Category.