This section describes the ACCOUNTING command with the REPORT subcommand.
Use the REPORT subcommand to generate reports from reduced records.
>>-REPORT-------------------------------------------------------> >--+--------------------------------------------------------------+->< '-+-| FROM/TO block |----------------------------------------+-' | .-MEMBER-. | +-SCOPE--(--+-GROUP--+--)----------------------------------+ | .-SHORT-. | +-LAYOUT--(--+-LONG--+--)----------------------------------+ | '-name--' | | .-NOEXCEPTION-. | +-+-EXCEPTION---+------------------------------------------+ | .-10-----. .-INAPPLET-. | +-TOP--(--+-number-+--+------+--+-------+--+-keyword--+--)-+ | '-ONLY-' '-TOTAL-' | | .-ACRPTDD-. | +-DDNAME--(--+-ddname--+--)--------------------------------+ +-| ORDER block |------------------------------------------+ '-| INCLUDE/EXCLUDE block |--------------------------------'
The syntax diagram shows the options that are available with this subcommand. See OMEGAMON XE for DB2 PE subcommand options for comprehensive descriptions of these options. The following list gives additional or specific descriptions of selected options, where appropriate.
For details, see FROM/TO subcommand options.
For information about tailoring report layouts, see the Reporting User's Guide.
If you use this option, your JCL must contain a valid DD definition for the ddname EXCPTDD. For more information about required ddnames, see Figure 3.
|For |more information about TOP processing, see Chapter 6, TOP subcommand option and the Reporting |User's Guide. You can specify:
ACCOUNTING
REPORT
TOP (3 ONLY)
The keywords that specify these fields are as follows:
If no TOP subcommand option is specified, the default is class 1 elapsed time (INAPPLET).
For details, see ORDER subcommand option and OMEGAMON XE for DB2 PE identifiers.
Additionally, you can use the REDUCE INTERVAL to order data on Accounting reports and Statistics reports. For example, if you want to report data at daily interval, specify INTERVAL (1440) in the REDUCE subcommand and ORDER(INTERVAL) in the REPORT subcommand.
For details, see INCLUDE and EXCLUDE subcommand options, which lists other allowed identifiers with this command and subcommand combination, and OMEGAMON XE for DB2 PE identifiers.
Special considerations for DDF trace data:
For single DB2 systems the PLANNAME identifier can be used to filter data and order reports in a meaningful manner.
When DB2 is acting as a DDF server, the PLANNAME identifier has a constant value of DISTSERV for requesters using DRDA®. For OM XE for DB2 PE Accounting data, DISTSERV is replaced with the first eight characters of the name of the client application so that filtering on PLANNAME, is meaningful.
Because this replacement is done by the batch accounting component, you need to consider the impact when using the INCLUDE and EXCLUDE subcommand options with other commands. This can cause unexpected results, for example when GLOBAL INCLUDE is used.
The following example shows how PLANNAME can be used in Accounting reports with DDF data to include data from a PLANNAME with the value CAPPNAME:
GLOBAL
INCLUDE (PLANNAME(DISTSERV)) // to include all DDF data
ACCOUNTING
REDUCE
INCLUDE (PLANNAME(CAPPNAME))
REPORT
INCLUDE (PLANNAME(CAPPNAME))
·
·
·
When GLOBAL INCLUDE is omitted, a report is produced, containing replaced names.
When REDUCE INCLUDE is omitted, no report is produced. This is because REDUCE is called implicitly by REPORT by using the GLOBAL filter. As accounting works with the replaced values, DISTSERV is not found in the input records.
When INCLUDE is omitted from REPORT, there is no data to report. The GLOBAL filter is used as default, explicitly including DISTSERV. As accounting works with the replaced values, DISTSERV is not found in the input records.
If the use of PLANNAME as a filter causes unexpected results across reports, use REQLOC, CONNTYPE and THREADTYPE, which are interpreted in exactly the same way in all OM XE for DB2 PE reports.
The following example specifies:
·
·
·
REPORT LAYOUT (LONG) INCLUDE (LOCATION(R(LOCN01 LOCN05))) FROM (03/18/99,10:00:00.00) TO (03/19/99,12:00:00.00)
·
·
·
This example specifies that two reports are produced:
·
·
·
ACCOUNTING REPORT TOP (3 INDB2ET) ORDER (CONNECTION-PLANNAME-PRIMAUTH,PRIMAUTH-PLANNAME) INCLUDE (PRIMAUTH(UID0001 UID0005 UID0009))
·
·
·
This example demonstrates how you can produce Accounting reports to show all accounting data for different requesting locations.
Because the Statistics report set does not offer a breakdown of the activity of DRDA protocol requests, an Accounting report showing the DDF statistics can be useful.
The first report shows fields summarized by the requesting location.
The information is shown for every requesting location, including the reporting location, regardless of the method of access.
The second report shows accounting data summarized by requesting location for all locations (except the reporting location) using DRDA protocol.
·
·
·
ACCOUNTING REPORT LAYOUT (LONG) ORDER (REQLOC) REPORT LAYOUT (LONG) ORDER (REQLOC) INCLUDE (CONNTYPE(DRDA))
·
·
·