Chapter Contents |
Previous |
Next |
SAS/SHARE User's Guide |
Use the following syntax to start a server with the selected options:
PROC SERVER <ID=>serverid
<ALLOC|NOALLOC>
<AUTHENTICATE=OPT|REQ> <LOG=value><DTF=SAS-datetime-format>; |
The following sections explain each of these options for the SERVER procedure. For complete information about server options, see The SERVER Procedure. For an example of a typical log, see Server Log Reporting All Logging Statistics.
Identifying the Server |
Server naming is also constrained by the type of host that the server runs on and the access method that it uses. For complete information about serverids by host, see Communications Access Methods for SAS/CONNECT and SAS/SHARE Software.
Here is an example of how to specify a serverid:
proc server id=share1;
Limiting Users to Pre-Defined Libraries |
Authenticating Users |
The AUTHENTICATE= option controls whether the server requires connecting clients to supply valid userid and password pairs when they connect to the server. See Ensuring That Userids Are Authentic for details about user authentication.
Logging Server Usage Statistics |
Examples of how to set logging follow:
proc server id=share1 log=message; proc server id=share1 log=bytecount; proc server id=share1 log=(message bytecount active elapsedtime); proc server id=share1 log=all;
A typical example of a client log for all statistics follows:
Usage statistics for user mike(1): Messages processed: 5,143 Bytes transferred: 10,578K Active time: 1:47:23.6148 Elapsed time: 3:28:64.7386
For complete details about the logging options, see The SERVER Procedure. For a more complete example of a SAS log, see Server Log Reporting All Logging Statistics.
To charge users for their share of server resource consumption, allocate that consumption proportionately according to the utilization statistics. You may allocate consumption based on a single statistic or on a combination of statistics. The most useful statistics for this purpose are
number of messages processed | |
bytes transferred | |
active time. |
You will probably need to experiment with the relative weights of these in your charge-back formula. They are at sensitive to a particular host, access method, server level of activity, and application mix.
Number of messages processed represent actual, billable work by the server. The MESSAGE, BYTECOUNT, and ACTIVETIME values of the LOG= option report data that, together, characterize the work that a user asked the server to perform. Here are a few examples:
Specifying the Format for the Server Log Timestamp |
Examples of how to set the timestamp follow:
proc server id=share1 alloc log=cpu dtformat=time11.2; proc server id=share1 noalloc log=io dtformat=_NODTS_;
An example of a datetime format is 18JAN1999:14:02.39.186.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.