List SAS Datasets Stored in a Directory

DESCRIPTION:
Returns a vector of the permanent SAS datasets stored in a UNIX directory.

USAGE:
sas.datasets(library)

REQUIRED ARGUMENTS:
library:
character string giving the name of the UNIX directory containing the SAS datasets.

VALUE:
a vector of character strings naming the SAS datasets in the directory.

DETAILS:
This function assumes that all files ending with .ssd in the specified directory are SAS datasets.

BACKGROUND:
The references cited below explain the structure of SAS datasets and how they are stored under UNIX.

REFERENCES:
SAS Institute Inc. (1988). SASO Technical Report P-176, Using the SASO System, Release 6.03, under UNIXO Operating Systems and Derivatives. SAS Institute Inc., Cary, North Carolina.

SAS Institute Inc. (1985). SASO Introductory Guide. Third Edition. SAS Institute Inc., Cary, North Carolina.


SEE ALSO:
sas.get , sas.contents .

EXAMPLES:
sas.datasets("saslib")

sas.datasets(lib=unix("echo $HOME/saslib")) [1] "mice" "men" mice <- sas.get(lib=unix("echo $HOME/saslib"), mem="mice")