The flow of data as
a SAS data view is processed can be complex, because a view is a set
of instructions that tells how to select and combine data from one
or more sources.
A SAS data view can
be interpreted in a user's SAS session or a server's SAS session.
When a view is interpreted in a user's SAS session, the view file
and none, some, or all of the data read by the view can be accessed
through a server. When a view is interpreted in a server's SAS session,
the view file and all of the data read by the view must be accessed
by the server.
There are three types
of SAS views:
-
PROC SQL views, which are interpreted
by the SQL engine
-
SAS/ACCESS views, which are interpreted by
SAS/ACCESS interface engines
-
DATA step views, which are interpreted
by the DATA step view engine
A view created by the
SQL procedure can read SAS data sets (SAS data files and any kind
of SAS data view).
When a
SAS/ACCESS view engine is used in a multi-user
server's session, the view engine can read only from the database;
it cannot update the database. The flow of data is one-way: from the
database to the interface engine to the server to the user.
A DATA step view can,
like a PROC SQL view, combine data from SAS data files and SAS data
views. In addition, DATA step views can include sophisticated calculations
and read data from external files. A DATA step view can produce data
exclusively by calculation, without reading any data.