Consider each SAS data
view used by your application and determine whether the view should
be interpreted in the server's SAS session or the users' SAS sessions.
You decide where to have a view interpreted according to these considerations:
-
How many observations does the
view produce?
-
How much data is read by the view?
-
Where is the data that is read
by the view?
-
How much work must the computer
do to interpret the view?
Some PROC SQL views
are especially good candidates for interpretation in a server's SAS
session because the number of observations produced by the view is
much smaller than the number of observations read by the view, the
data sets read by the view are available to the server, and the amount
of processing necessary to build each observation is not large.
Other PROC SQL views
should be interpreted in users' SAS sessions because the number of
observations produced by the view is not appreciably smaller than
the number of observations read by the view, some of the data sets
read by the view can be directly accessed by the users' SAS sessions,
and the amount of processing done by the view is considerable.
By default, SAS data
views are interpreted in a server's SAS session, but the RMTVIEW=
option in the LIBNAME statement enables you to have the views in a
library interpreted in users' SAS sessions instead. The NORMTVIEW
option in the PROC SERVER statement enables you to prevent all SAS
data views from being interpreted in the server's session.
SAS/ACCESS views do not provide update access to the underlying
database when they are interpreted in a server's session, so it is
often more practical to interpret
SAS/ACCESS views in users' SAS session.
If it is useful for
your application to have a
SAS/ACCESS view interpreted in a server's session, ensure that all of the
necessary database interface components are available to the server's
session.
If a user's SAS session
is capable of using a
SAS/ACCESS interface engine to access the underlying database, it is more
efficient to execute the
SAS/ACCESS interface engine in the user's SAS session. Note that in this case
it might be convenient to store the view file in a SAS library that
is accessed through a server if the view will be updated frequently
and used by more than one user.
Like
SAS/ACCESS views, DATA step views are very
often most useful when interpreted in users' SAS sessions.
For more information
about interpreting DATA step views in a server's session, see Know Your Application's DATA Step Views.
Here are some examples
of specifying the RMTVIEW= and NORMTVIEW options:
LIBNAME MYLIB 'my SAS library'
RMTVIEW=YES
<other LIBNAME options>;
PROC SERVER NORMTVIEW
<other PROC SERVER options>;