LOGOPTS statement

The LOGOPTS statement controls how Log Master processes Db2 log files.

The keywords of this statement correspond to installation options that are described in Installation option descriptions.

The following figure shows the LOGOPTS statement syntax. 


OptionDescription

LOGSORT

Determines how Log Master processes Db2 log records in a data sharing environment. Specify one of the following sort modes.

Value

Description

WHENEVER

Directs Log Master to use the value of the LOGTAPES keyword to determine whether to sort multiple Db2 log files. If you specify this value, Log Master uses the LOGTAPES value, regardless of the type of storage device on which the log data sets are stored. This is the default value.

The following table summarizes whether Log Master sorts multiple Db2 log files in data sharing and non-data sharing environments.

LOGTAPES valueData sharing systemNon-data sharing system

LOGTAPES = 0

Merge

Merge

LOGTAPES < (number of data sharing members with tape logs)

Sort

Merge

LOGTAPES >= (number of data sharing members with tape logs)

Merge

Merge

NEVER Directs Log Master to avoid sorting the log (by processing all log data sets concurrently). When LOGSORT is NEVER, Log Master ignores any LOGTAPES value, and allocates as many units as it needs to perform a merge (not a sort) action. Depending on the number of data sharing members and the number of tape units in your environment, this setting can cause contention for tape units.
ALWAYSDirects Log Master to always sort the log. Log Master does not attempt to process multiple log data sets concurrently. If LOGSORT is ALWAYS, Log Master uses LOGTAPES only to determine how many storage devices it can use to read log records for the sort action.

See also LOGSORT=WHENEVER.

LOGTAPES (maximumUnits)

Specifies the maximum number of tape units or DASD data sets that Log Master allocates to read log files at one time. This value applies only in a data sharing environment. (LOGTAPES does not limit the number of physical tape devices that Log Master can use, only the number of tape units that Log Master allocates for log processing at one time.) The default value is 0.

Important

Log Master allocates the value that you specify, or a value equal to the number of members in the data sharing group, whichever value is less.

When the LOGSORT installation option is set to NEVER, Log Master ignores any LOGTAPES value. For more information about how the LOGTAPES and LOGSORT keywords interact, see LOGSORT.

Values used for the maximum number of units or data sets are as follows:

ValueDescription
nnnnAny numeric value between one and the total number of tape drives accessible to the system.
0Log Master automatically sets LOGTAPES to the number of members within the data sharing group.

See also LOGTAPES=0.

Was this page helpful? Yes No Submitting... Thank you

Comments