Format dumps by using the DSNWDMP statement
You can use the DSNWDMP statement to specify the dump records to be used as input, and causes the Db2 dump formatter (DSNWDPRD) to be invoked, which formats the specified Db2 control blocks.
Format the Db2 control blocks in a dump by changing the parameters on the DSNWDMP control statement. The format of this control statement and the options that can be specified are shown in the following diagram.
Separate multiple operands by commas, not blanks. A blank that follows any operand in the control statement terminates the operand list, and any subsequent operands are ignored. The following table lists and explains each of the various keywords that can be specified in the Db2 control statement for formatting dumps.
Keyword | Explanation |
---|---|
SUBSYS= nnnn | Specifies the site-defined Db2 subsystem name (nnnn).
Range is one to four characters. Optional if SUMDUMP=YES; required if SUMDUMP=NO. Refer to SUMDUMP Information for more information. |
TT | Formats the Db2 global
trace table.
|
AA | Formats significant Db2 control blocks in all active address spaces for the subsystem. |
SA | Formats significant Db2 control blocks that are associated with a single address space. The control statement must designate the ASID in hexadecimal (up to four digits). Apostrophes and leading zeros can be included or omitted (as in DE, 00DE, or '00DE'). |
LG | Formats a long form of the significant Db2 global control block structures. Includes all resource manager-specific global information as well as the system-wide global control blocks. |
ALL | Formats all significant Db2 control blocks. Includes the trace table,
control blocks in global storage, and control blocks in all active
address spaces for the subsystem. Equivalent to specifying TT, AA, and LG. |
SUMDUMP | Specifies the part of the dump data set to be used
as input to the dump formatter.
The DSNWDPRD dump formatter always tries to format the same control blocks and data structures, regardless of whether input dump data is obtained from the summary or non-summary portion of the dump data set. |
DS | Specifies the level of detail about agents to report.
|
LM | Specifies information about IRLM to report.
|
SM | Specifies information about Storage Manager to
report.
|
PHB | Specifies a PHB address. If SM is specified, the storage manager information is displayed only for the PHB with this address. |
ST | Specifies information about stack storage.
|
SMSA | Specifies storage information for only the requested ASID and for global storage. |
DM | Specifies the Data Manager information to report:
|
BM | Specifies Buffer Manager information to report:
|
SH | Specifies data sharing information to report:
|
DB | Specifies database descriptor information to report:
|
CT | Specifies the CT address for a specific agent. Use this parameter with the DM or DB option to narrow the output to a single agent. |
ET | Specifies information about exception states:
|
DI | Specifies information about DDF threads to report:
|
DISYS | Specifies information about DDF system to report:
|
TOKEN | Specifies the TOKEN value for a specific thread to be displayed. Use this option with the DI option and the DS=3 or DS=4 option. A warning message is displayed if the TOKEN value is invalid or no threads are associated with the specified TOKEN. |
RS | Specifies
the Relational Data Services information to report:
|
SP | Specifies the stored procedure information to report:
|
SQ | Specifies the status information to report on Db2 internal service tasks in the system services address space (ssnmMSTR), database services address space (ssnmDBM1), and DDF address space (ssnmDIST):
|
LO | Specifies the log manager information to format and report:
|
RM | Specifies the resource manager vector table (RMVT) and resource manager function table (RMFT) information to format and report:
|
Use the following keyword default values:
- If the SUBSYS keyword is specified with SUMDUMP=YES, the SUBSYS keyword is used only if no summary records are found in the dump data set. In this case, the SUBSYS keyword is used to locate significant Db2 control blocks within the non-summary portion of the dump data set.
- If none of the following operands are specified on a DSNWDMP control
card, the default is ALL.
AA SA LG
- For each set of the following operands, the first operand overrides
the operands that follow it when all operands are used in the same
control statement. This behavior is because the first operand generates
formatted data that includes the formatted data that would be generated
by the operands that follow it.
ALL TT ALL LG ALL AA SA
For example, ALL overrides LG if both operands are specified.
- If the DS option is not specified, the output does not contain formatted agent information.
SUMDUMP information
Because
the formatted control blocks consist of both volatile
and static
data,
input dump data selection should be based on the state of the control
blocks at a time that is as close as possible to the time of the error.
- SUMDUMP=YES
- For SVC dumps, the default is to use summary data records as input
to the dump formatter because the summary dump records contain
volatile
data that was captured at a time close to the time of the error. Specifying YES ensures that relevant Db2 diagnostic information is sent. - SUMDUMP=NO
- Because non-summary data is obtained asynchronously to the current
system activity when the dump is generated,
volatile
data might have been altered or lost by the time it was placed into the dump data set.Use this option if errors occur when you gather dump data or formatting the summary portion of the dump data set. Appropriate error messages are issued in these circumstances. In addition, use this option to format stand-alone or dynamic (z/OS® console) dumps.
DS information
Use the DS option to help diagnose hangs and waits. The DS option gives you a snapshot of the activity in Db2 at the time the dump was taken.
The output that was generated when you specify the DS=1 option looks like the following.
Figure Label | Description |
---|---|
1 | Address of the agent's ACE. |
2 | Status of the thread. This value is the same as the ST and A fields in output from the command -DISPLAY THREAD. |
3 | Request count. This value is the same as the REQ field in output from the command -DISPLAY THREAD. |
4 | The chain that the ACE is on. Possible values are System Chain, Allied Chain, or Stored Proc. |
5 | Authorization ID associated with a signed-on connection. This value is blank if no sign-on took place. |
6 | Plan name for the agent. This value is the same as the PLAN field in output from the command -DISPLAY THREAD. |
7 | Correlation ID for the agent. This value is the same as the ID field in output from the command -DISPLAY THREAD. |
8 | Correlation name for the agent. |
9 | Token that is associated with the thread. This value is the same as the TOKEN field in output from the command -DISPLAY THREAD. |
10 | Address of the execution block. |
11 | ASID of the primary address space. |
12 | ASID of the home address space. |
13 | Address of a spawned execution block, if there is one. |
14 | The TCB address, if this is a TCB. This value is zero if this is an SRB. |
15 | Whether the agent was suspended by Db2 at the time of the abend. |
16 | Value in Register 14 the last time that suspend was requested. This value is valid only if the agent is suspended. |
17 | Timestamp when the suspend occurred. |
Run DSNWDMP with option DS=1 or DS=2 to view allied threads in Db2. Option DS=2 generates information about all allied threads, while DS=1 generates only active threads.
The following output is from DSNWDMP with option DS=2 after a Db2 hang at shutdown. The details of the first ACE show that a CICS® thread was active at the time of the shutdown, which is the reason for the hang.
Output from DS=3 shows both allied agents and system agents. Option DS=3 is helpful for diagnosing problems in such areas as CPU parallelism and the distributed data facility, where the tasks are related to allied work but appear on the system ACE chain.
The following output shows DSNWDMP with option DS=3 after a hang in a parallel task.