DATA Step

From sasCommunity
Jump to: navigation, search

The DATA Step is a portion of SAS code that has a group of SAS statements that are used to generate a SAS data set.

The operation of a DATA step is controlled by the SAS Supervisor.

Syntax

DATA statement;
Zero or more DATA Step statements or any other statements that can be used in open code;
RUN statement or a DATA Step boundary;

Statements that can be used in a DATA Step

ABORT
ARRAY
Array Reference
Assignment
ATTRIB
BY
CALL
CARDS
CARDS4
Comments
CONTINUE
DATA
DATALINES
DATALINES4
DECLARE
DELETE
DESCRIBE
DISPLAY
DO
DO UNTIL
DO WHILE
DO, Iterative
DROP
END
ERROR
EXECUTE
FILE
FILE, ODS
FORMAT
GO TO
IF
IF, Subsetting
IF-THEN/ELSE
INFILE
INFORMAT
INPUT
INPUT, Column
INPUT, Formatted
INPUT, List
INPUT, Named
KEEP
LABEL
Labels, Statement
LEAVE
LENGTH
LINK
LIST
LOSTCARD
MERGE
MODIFY
Null
OUTPUT
PUT
PUT, Column
PUT, Formatted
PUT, List
PUT, Named
PUT, ODS
PUTLOG
REDIRECT
REMOVE
RENAME
REPLACE
RESETLINE
RETAIN
RETURN
SELECT
SET
STOP
Sum
UPDATE
WHERE
WINDOW

Further reading

See also