Summary of Commands

You have seen that IML has an extensive set of commands that operate on SAS data sets. Table 7.1 summarizes the data management commands you can use to perform management tasks for which you might normally use the SAS DATA step.

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 IML variables

REPLACE

 

writes observations back into a SAS data set

RESET DEFLIB

 

names default libname

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