Data Set Maintenance Functions

Two functions and two subroutines are provided to perform data set maintenance:

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 member. This function returns a character matrix that contains the variable names for the SAS data set specified by libname and memname. 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 23 for details and examples of these functions and routines.