Search notes:

SAS data set

A data set consists of data along with descriptor information.
A data set is somewhat analogous to a relational database table.
Usually, a data set is built in a data step.
It is a SAS file that is stored in an SAS library.
A data set is identifyed by libref.filename. If libref is omitted, SAS chooses WORK as default.

Descriptor information

Information such as the data types and length of variables (attributes) etc.

Two types of data sets

SAS knows two types of data sets: data files and data views.

Data files

Data files are organized with SAS libraries.

Data view

A data view stores the descriptor information and the observations in separate places.
Usually, a data view feels like a data file.
There are three types of data views:

proc dataset

Information about data sets can be read and changed with proc datasets.

Indexes

Variables/attributes can be indexed on a data set. Indexes can then be used in
Use idxname and idxwhere options to override default index usage.
options msglevel=i prints index usage into the log.

Check existence of a data set

The existence of a data set can be checked or verified with the exist function.

See also

SAS data sources
proc datasets
data sets
Execute an SQL statement for each observation in a data set

Index