The LOGPARM= system
option controls the opening and closing of SAS log files. This option
also controls the naming of new log files in conjunction with the
LOG= system option and the use of directives in the value of LOG=.
The LOGPARM= option is effective only when the LOG= option specifies
a physical data set name or UFS filename. LOGPARM= has no effect if
LOG= specifies a ddname.
Native
z/OS filenames
that contain more than eight characters are truncated to eight characters.
The character count begins with the first character of the filename.
If a period is encountered, the character count begins again. For
example,
testFeb1234.Wednesday
is truncated
to the following
testFeb1.Wednesda
Note
that
testFeb1234 is truncated to
testFeb1,
and that
Wednesday is truncated to
Wednesda.
If a directive is specified
in a PDS member name, the directive is fully expanded. The PDS member
name might then exceed eight-characters, which is the maximum length
for a PDS member name, and an error occurs.
Directives are fully
expanded for the UNIX file system.
Using directives in
the value of the LOG= system option enables you to control when logs
are open and closed and how they are named, based on real-time events,
such as time, month, day of week, and so on. The following table contains
a list of directives that are valid in LOG= values:
The
z/OS directives
begin with #. Specifying a % directive instead of a # directive is
not supported on
z/OS.
Directives for Controlling the Name of SAS Log Files
|
|
|
|
|
|
Locale's abbreviated
day of week
|
|
|
|
Locale's full day of
week
|
|
|
|
Local's abbreviated
month
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Identifies a user to
the system. The user ID consists of 1 through 8 alphanumeric or national
($, #, @) characters. The first character must be an alphabetic character
or a national character ($, #, @).
|
|
|
|
|
|
|
|
|
|
|
Current system node
name (without domain name)
|
|
|
|
|
Returns your user ID
in TSO, the name on the JOB card in the JCL, or the start command
or proc name for a started task (STC).
|
|
|
|
|
|
|
|
|
|
|
|
alphanumeric expression
that creates a log filename that does not currently exist
|
|
|
|
|
|
|
Week number (Monday
as first day; all days in new year preceding first Monday are in week
00)
|
|
|
|
|
|
|
|
|
|
|
|
Pound escape writes
a single pound sign in the log filename.
|
|
* Because %v, %l, and
%p are not a time-based format, the log filename never changes after
it has been generated. Therefore, the log never rolls over. In these
situations,specifying ROLLOVER=AUTO is equivalent to specifying ROLLOVER=SESSION.
|