Service configuration
and log files are kept in a service directory tree. The service root
directory can be accessed from the Windows
Start menu. From the
Start menu, select
ProgramsSAS (or your SAS 9.3 program
group) IntrNet. Select the entry for the service you just created, and then select
Service Directory. This directory contains an appstart.sas
file with the SAS code used to start the Application Servers for this
service. Other scripts and configuration files for this service are
also located in this directory.
Log files are placed
in the logs directory under the service root directory and are named
<
day>_<
port>.log. (for example, Mon_5001.log or Tue_5001.log).
By default, logs are kept for one week (six full days and one partial
day) and then overwritten.
SAS 9 has implemented
a set of % codes that can be used in the -log parameter. You must
add a -logparm option to get the codes translated into the log. For
example, adding the following options creates log files with unique
log filenames:
-log 'C:\Program Files\Sas\IntrNet\service-name\logs\appsrv_%v.log'
-logparm rollover=auto
The ROLLOVER=AUTO option causes
an automatic rollover of the log when the directives in the value
of the LOG option change. This is particularly useful for generating
log files for pool or launch services. This example creates log filenames
such as appsrv_1.log, appsrv_2.log, and appsrv_3.log.
Note: You must use a full path
to specify the log file because there is limited control over what
path the Load Manager or Spawner uses as the current directory for
each Application Server.
For more information,
see the documentation on the LOGPARM= system option in
SAS System Options: Reference.