Summary of Commands

You can use the functions, subroutines, and statements in this chapter to interact with SAS data sets. Table 7.1 summarizes the statements that you can use to perform management tasks from within the SAS/IML language.

Table 7.1: Data Management Commands

Command

Description

APPEND

Adds observations to the end of a SAS data set

CLOSE

Closes a SAS data set

CREATE

Creates and opens a new SAS data set for input and output

DELETE

Marks observations for deletion in a SAS data set

EDIT

Opens an existing SAS data set for input and output

FIND

Finds observations

INDEX

Indexes variables in a SAS data set

LIST

Lists observations

PURGE

Purges all deleted observations from a SAS data set

READ

Reads observations into SAS/IML variables

REPLACE

Writes observations back into a SAS data set

RESET DEFLIB

Names default libref

SAVE

Saves changes and reopens a SAS data set

SETIN

Selects an open SAS data set for input

SETOUT

Selects an open SAS data set for output

SHOW CONTENTS

Shows contents of the current input SAS data set

SHOW DATASETS

Shows SAS data sets currently open

SORT

Sorts a SAS data set

SUMMARY

Produces summary statistics for numeric variables

USE

Opens an existing SAS data set for input