Step 1 (DPRSMFA)—SMF extract and file creation
DD statement | Description |
---|---|
STEPLIB DD | Defines the program library containing the DPRDSMF load module |
DPRLOG DD | Defines the data set for the program results summary, which indicates input and output record counts |
SYSOUT DD | Defines the data set for the program results summary, which indicates input and output record counts |
SYSUDUMP DD | Defines the dump data set for problem determination |
DPDACCT DD | Contains the accounting records created from the Db2 SMF 101 accounting records for TYPE=ACCT and, optionally, for PKGACCT, DDFACCT, BUFACCT |
DPDSTOR DD (Optional) | If present, contains the address space storage records (ASPCSTOR) created from the Db2 SMF 100 statistics records This file is passed to STEP3 STORDD. If this statement is not present, DPDSTOR records are written to DPDSTAT. |
DPDACPKG DD (Optional) | If present, contains the package accounting records (PKGACCT) created from the Db2 SMF 101 accounting records This file is passed to STEP3 ACPKGDD and is concatenated to the STEP6 DPDACCT DD statement. If this statement is not present, PKGACCT records are written to DPDACCT. |
DPDACDDF DD (Optional) | If present, contains the DDF accounting records (DDFACCT) created from the Db2 SMF 101 accounting records This file is passed to STEP3 ACDDFDD and is concatenated to the STEP6 DPDACCT DD statement. If this statement is not present, DDFACCT records are written to DPDACCT. |
DPDACBUF DD (Optional) | If present, contains the buffer accounting records (BUFACCT) created from the Db2 SMF 101 accounting records This file is passed to STEP3 ACBUFDD. If this statement is not present, BUFACCT records are written to DPDACCT. |
DPDACACC DD (Optional) | If present, contains the accelerator accounting records (ACCA) created from the Db2 SMF 101 accounting records This file is passed to STEP3 ACCELDD. If this statement is not present, DPDACACC records are written to DPDACCT. |
DPDSTAT DD | Contains the statistics records created from the Db2 SMF 100 statistics records This file is passed to the statistics consolidation step. For more information, see Step-2-DPRSMFA-Statistics-consolidation. |
(BMC.AMIOPS.SPE2304)DPDSTATA | Contains the statistics records created from the Db2 SMF 100 statistics records (Q3ST-QLES) This file is passed to the statistics consolidation step. For more information, see Step-2A-DPRSMFA-Statistics-consolidation. |
(BMC.AMIOPS.SPE2304)DPDSTATB | Contains the statistics records created from the Db2 SMF 100 statistics records (QLST-QXST) This file is passed to the statistics consolidation step. For more information, see Step-2B-DPRSMFA-Statistics-consolidation. |
DPDAUDIX DD | Contains audit records for record extraction processing This is an internal DD statement that is used during extraction processing of audit records. |
DPDAUDIT DD | Contains the audit records created from the Db2 SMF 102 audit records This file is passed to the load into Db2 tables step. For more information, see Step-3-DPRSMFA-Job-submission-for-parallel-processing. |
DPDDGBP DD | If present, contains the dynamic buffer pool attribute records (IFCID 202) and group buffer pool attribute records (IFCID 230) The file is passed to the load into Db2 tables step. For more information, see Step-3-DPRSMFA-Job-submission-for-parallel-processing . |
SORTIN DD or DPRINPUT DD | Defines the data (an SMF data set or DOM archive data set) to be extracted and sorted The DPRINPUT DD statement is optional. If the SORT=NO control statement is specified, the DPRDSMF program attempts to extract the data from the DPRINPUT DD data set; if the DPRINPUT DD statement is omitted, DPRDSMF extracts the data from the SORTIN DD data set. For more information about SORT=NO, see DPRCNTL SMF extract control statement. |
DPRCNTL DD | Defines the Db2 subsystem and the selection of data types by using the following control statements (described in DPRCNTL SMF extract control statement):
|
DFSPARM DD
| Specifies the VLSHRT override option (for DFSORT users only) VLSHRT—Temporarily overrides the VLSHRT installation option. DFSORT continues processing if a variable-length input record is too short to contain all specified INCLUDE compare fields. This method of processing short SMF records provides better performance than using the SHORTREC control statement. However, this option works only with DFSORT Release 11.1 or later. If using any other sort routine, you need to add the SHORTREC control statement. |
DPRCNTL SMF extract control statement
The following table describes the control statements for the DPRCNTL SMF extract control statement:
Statement | Description |
---|---|
DATE= | Select records only from specific date ranges:
|
EXCLUDEPKG= | Exclude package accounting records that you explicitly specify The INCLUDEPKG and EXCLUDEPKG filters are mutually exclusive. If you insert both INCLUDEPKG and EXCLUDEPKG filters, the DPRSMF job generates message DPRO215I and terminates. The following keywords are valid:
You can specify up to eight comma-separated values for each keyword. Enclose keyword values that have an embedded space in single quotation marks, such as 'Db2 CALL'. Multiple keywords for EXCLUDEPKG imply a logical OR operand. If you use the EXCLUDEPKG filter from package accounting (PKGACCT), the only records excluded are those with matching values. To compare values for the CONNTYPE=keyword, see the CONNTYPE column in Accounting-detail-and-summary-tables-DMRACxxx. |
INCLUDEPKG= | Include package accounting records that you explicitly specify The INCLUDEPKG and EXCLUDEPKG filters are mutually exclusive. If you insert both INCLUDEPKG and EXCLUDEPKG filters, the DPRSMF job generates message DPRO215I and terminates. The following keywords are valid:
You can specify up to eight comma-separated values for each keyword. Enclose keyword values with embedded space in single quotation marks, such as 'DB2 CALL'. Multiple keywords for INCLUDEPKG imply a logical OR operand. If you use the INCLUDEPKG filter from package accounting (PKGACCT), the only records included are those with matching values. To compare values for the CONNTYPE=keyword, see the CONNTYPE column in Accounting-detail-and-summary-tables-DMRACxxx. |
SHORTREC=YES|NO | Allows selection by Db2 subsystem ID from SMF data with records shorter than 18 bytes If you are using DFSORT Release 11.1 or later, see the description for the DFSPARM DD value. |
SORT=YES|NO|COPY | Determines whether input records are sorted The sort is required to ensure that the input records are in chronological order. However, if the input records are already in chronological order, you can bypass the sort and reduce CPU usage, I/O, elapsed time, and DASD usage. SORT=YES is the default. You should specify YES when multiple files are being extracted, and the files might not be in chronological order. You can specify SORT=NO or SORT=COPY in the following situations:
SORT=NO and SORT=COPY are functionally equivalent. SORT=NO uses written I/O and comparison routines written by BMC to read and process the input. SORT=COPY uses optimized SORT I/O and comparison routines. In any of the situations previously described either SORT=NO or SORT=COPY should improve processing time. The improvement will vary from environment to environment, and sufficient testing is needed to determine which option provides the best results. We recommend experimenting with various SORT parameters through the use of the DFSPARM (DFSORT) or $ORTPARM (Syncsort) DD statement. |
SSID= | Defines the Db2 subsystem IDs that are desired when you want to select only certain Db2 subsystem IDs from the SMF data as it is read If this operand is omitted, all subsystems are selected. As many as 10 entries may be entered, enclosed in parentheses and separated by commas. |
TCCSID= | Specifies the target CCSID for translation of Unicode data The default is CCSID 37 (US EBCDIC). For example:
z/OS Unicode Conversion Services must be properly configured with the appropriate translation tables (CCSID 1208-target). See the z/OS Support for Unicode: Using Conversion Services manual. |
TIME= | Can be used to select records only from specific time ranges:
|
TRANSLATEDBID=NO (Optional) | Excludes the translation of the DBNAME for IFCID 142, 143, and 144 records when processing audit records When TRANSLATEDBID=NO is specified, the database name is reported as the numeric equivalent to the DBID. You can use TRANSLATEDBID=NO in conjunction with the following parameters:
Specifying this parameter can reduce CPU usage when processing audit records, if the SMF data contains a high number of IFCID 105 and 107 records. |
TYPE= | Allows selection of only the following of SMF accounting and statistics data:
You can enter these keywords in any combination, enclosed in parentheses and separated by commas. If this entry and TYPE2 are not coded, all accounting and statistics types are selected. |
TYPE1= | Allows selection of only the following of SMF accounting data:
|
TYPE2= | Allows selection of these audit data types:
You can enter these keywords in any combination, enclosed in parentheses and separated by commas. Audit data types are not selected unless TYPE2 is specified. |
TYPE3= | Allows selection of these statistics data types:
You can enter these keywords in any combination, enclosed in parentheses and separated by commas. |
TYPE4= | Allows selection of these accelerator or simulated bufferpool data types:
|
Timezone Adjustment Process
The following keywords refer to the timezone adjustment process. Supply the parameters in TZPARM only when local time is not equal to Greenwich mean time at your shop (a non-zero value is in SYS1.PARMLIB member CLOCKXX). SMF records for Db2 contain Greenwich mean time. TZPARM must contain the correct parameters for the DPRSMF program to convert Greenwich mean time to local time.
Statement | Description |
---|---|
TIMEZONE= (Optional) | Defines the adjustment amount based on Coordinated Universal Time (UTC) Sample parameters for the first SMF group are:
Sample parameters for the second SMF group are:
Syntax rules are as follows:
|
SMFID= | Defines the SMF ID for which the following timezone parameters apply If the timezone parameters apply for all SMF IDs that might be processed, it is not necessary to include SMFID. Do not include some TZSTART/TIMEZONE combinations without a qualifying SMFID, and other TZSTART/TIMEZONE combinations after the qualifier. |
TZSTART= | Defines the starting time after which the adjustment is made to any datetime fields Its data field is in datetime format. |
Where to go from here