Working with SAS Data Sets


Data Set Maintenance Functions

The following functions and subroutines perform data set maintenance tasks:

DATASETS function

obtains members in a data library. This function returns a character matrix that contains the names of the SAS data sets in a library.

CONTENTS function

obtains variables in a SAS data set. This function returns a character matrix that contains the variable names for the data set. The variable list is returned in alphabetical order.

RENAME subroutine

renames a SAS data set member in a specified library.

DELETE subroutine

deletes a SAS data set member in a specified library.

See ChapterĀ 24 for details and examples of these functions and routines.