Chapter Contents

Previous

Next

Definition

A SAS data library is a collection of one or more SAS files that are recognized by the SAS System and that are referenced and stored as a unit. Each file is a member of the library.

The logical concept of a SAS data library remains constant, regardless of the operating environment. In any operating environment where SAS can be installed, the structure for organizing, locating and managing SAS files is the same.

At the operating environment level however, a SAS data library has different physical implementations. Most SAS data libraries implement the storage of files in a manner similar to the way the operating environment stores and accesses files.

For instance, in directory-based operating environments, a SAS data library is a group of SAS files that are stored in the same directory and accessed by the same engine. Other files can be stored in the directory, but only the files with file extensions assigned by SAS are recognized as part of the SAS data library. Under CMS, a SAS data library is a group of SAS files with the same filetype. Under OS/390, a SAS data library can be implemented as either a bound library in a traditional OS data set or as a directory under UNIX system services.

SAS files can be one of the following:

Types of Files in a SAS Data Library

[IMAGE]

Each SAS file, in turn, stores information in smaller units that are characteristic of the SAS file type. For example, SAS data sets store information as variables and observations, while SAS catalogs store information in units called entries. SAS determines the type of a file from the context of the SAS program in which the file is created or specified; therefore, a library can contain files with the same name but with different member types.

SAS data libraries can contain files that you create, or they can be one of several special libraries that SAS provides for convenience, support, and customization capability such as the WORK library. SAS does not limit the number of SAS files you can store in a SAS data library.

For more information on SAS files, see the following sections:


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.