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). SAS\u\s-1\(rg\s+1\d Technical Report P-176, Using the SAS\u\s-1\(rg\s+1\d System, Release 6.03, under UNIX\u\s-1\(rg\s+1\d Operating Systems and Derivatives. SAS Institute Inc., Cary, North Carolina.

SAS Institute Inc. (1985). SAS\u\s-1\(rg\s+1\d Introductory Guide. Third Edition. SAS Institute Inc., Cary, North Carolina.

SEE ALSO:

, .

EXAMPLES:

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