Language Reference


Data Set and File Statements

APPEND statement

adds observations to SAS data set

CLOSE statement

closes a SAS data set

CLOSEFILE statement

closes a file

CONTENTS function

returns the variables in a SAS data set

CREATE statement

creates a new SAS data set

DATASETS function

obtains the names of SAS data sets

DELETE call

deletes a SAS data set

DELETE statement

marks observations in a data set for deletion

DO DATA statement

repeats a loop until an end of file occurs

EDIT statement

opens a SAS data set for editing

FILE statement

opens or points to an external file

FIND statement

finds observations

FORCE statement

is an alias for the SAVE statement

INDEX statement

indexes a variable in a SAS data set

INFILE statement

opens a file for input

INPUT statement

inputs data

LIST statement

displays observations of a data set

PUT statement

writes data to an external file

READ statement

reads observations from a data set

RENAME call

renames a SAS data set

REPLACE statement

replaces values in observations and updates observations

SAVE statement

saves data

SETIN statement

makes a data set current for input

SETOUT statement

makes a data set current for output

SORT statement

sorts a SAS data set

SUMMARY statement

computes summary statistics for SAS data sets

PURGE statement

removes observations marked for deletion and renumbers records

USE statement

opens a SAS data set for reading