Explain parameters
Parameter name | Execution parameter | Description |
---|---|---|
ACCEL= (optional) | NA | Whether Analytics are displayed:
|
--BEGSQL (optional; required only for OBJECT= SQLTEXT) | NA | Start-delimiter for inline SQL associated with OBJECT=SQLTEXT When Explain encounters this parameter, it starts processing the input lines as inline SQL. |
BMCMSG= (optional) | NA | Use and display format of the BMC rule messages produced in the report Specify one of the following values:
|
COLBRK= (optional) | NA | Whether a break occurs between columns listed as part of the SELECT clause in the SQL text Specify one of the following values:
|
COLLID= (optional) | 08 | Collection ID for packages If you omit this value, this parameter is not part of the selection criteria. The maximum length is 128. 1 |
COMPARE= (optional) | NA | Whether to compare the dynamic Explain with the static Explain for the object Specify one of the following values:
|
CONTOKEN= (optional) | NA | Contoken for packages, used to provide the CHAR value of the consistency token The length must be 16. |
CURRENCY= (optional) | NA | Three-character currency code for the monetary unit used to calculate the cost translation rate You can use any characters except spaces in this field, though BMC Software recommends that you use ISO 4217 standard codes. The default is USD (U.S. dollars). |
DBRM= (optional; required only for OBJECT= DBRM) | NA | Name of the DBRM to Explain You can use Db2 wildcards with this parameter. The maximum length is 8. The default is %. |
DBRMLIB= (optional) | NA | Whether to Explain a DBRMLIB member Specify one of the following values:
|
DDFLOC= (optional) | NA | Name of Db2 location, if you plan to access data on a different subsystem using DDF The maximum length is 16. |
DEGREE= (optional) | NA | Whether to run a query using parallel processing for better performance For plans, this parameter applies only to the DBRMs bound directly to the plan (named in the MEMBER option on BIND PLAN), and has no effect on PKLIST names. This parameter has no effect on dynamic SQL statements, because they use the value of the special register CURRENT DEGREE. Specify one of the following values:
|
--ENDOBJ (required) | NA | End-delimiter for a set of Explain parameters associated with a specific object When Explain encounters this parameter, it processes the preceding Explain parameters (delimited by the --NEWOBJ parameter) as a completed Explain request. |
--ENDSQL (optional; required only for OBJECT= SQLTEXT) | NA | End-delimiter for inline SQL associated with OBJECT=SQLTEXT When Explain encounters this parameter, it stops processing the preceding input lines (delimited by the --BEGSQL parameter) as inline SQL. |
HISTORY= (optional) | NA | Whether the history tables are to be updated with the results of an Explain Specify one of the following values:
|
INSERT= (optional) | NA | Whether to Explain INSERT statements
|
MSGLEVEL= (optional) | NA | Minimum severity level of the messages produced in the report Specify one of the following values:
|
NAME= (optional; required only for OBJECT=PLAN or PACKAGE, or when DBRMLIB=YES) | 07 | Name of the package or plan to Explain You can use Db2 wildcards with this parameter. The default is %.
|
--NEWOBJ (optional) | NA | Start-delimiter for a set of Explain parameters associated with a specific object You must also delimit the end of the set with the --ENDOBJ parameter. The delimited set of parameters are treated as a single request. |
OBJECT= (required) | 04 | |
ONLINE= (optional) | NA | Whether the object is used in online or batch mode Specify one of the following values:
|
PLAN= (required) | 02 | Product plan name used for executing the product function 1 |
PLANTBL= (optional) | NA | Whether to process a dynamic Explain or a static Explain Specify one of the following values:
|
PLNAME= (optional; required only for OBJECT= DBRM) | 06 | Name of the plan containing DBRMs and packages to process You can use Db2 wildcards to display a list of matching plans in batch. The maximum length is 8. The default is %. 1 |
PTOWNR= (optional) | NA | Qualifier for the plan table used by the dynamic Explain operation Specify one of the following values:
|
RATE= (optional) | NA | Rate used to translate the timeron cost into a monetary unit, in the form of monetary unit/timerons 2 |
RATESU= (optional) | NA | Rate used to translate the service units cost into a monetary unit, in the form of monetary unit/service units 2 |
READONLY= (optional) | NA | Whether the object's access intent is read only Specify one of the following values:
|
RECALL= (optional) | NA | Whether to recall an archived DBRMLIB data set when processing a DBRM or DBRMLIB Specify one of the following values:
|
RETAIN= (optional) | NA | Number of Explain results to retain The purge process for history uses this value to clean up the history table during the Explain operation. If the HISTORY parameter is set to N, this value is ignored and no purge processing is performed. This parameter is a value from 0 to 99. A value of 0 deletes all existing rows for the object, or saves none. The default is 3. |
RPTHDR= (optional) | NA | Whether to include report headings in the batch report Specify one of the following values:
|
RULES= (optional) | NA | Name of a rule set from which to provide expert rules in the report Specify one of the following values:
The maximum length is 8. |
SQLTEXT= (optional) | NA | Used when OBJECT=SQLTEXT, where SQLTEXT is the SQL text you want to print; should be the last parameter in the JCL |
SSID= (required) | 01 | Db2 subsystem name on which to perform the Explain The subsystem value cannot be changed within a single job step. The maximum length is 4. 1 |
STATIC= (optional) | NA | Rows in the PLAN_TABLE used for a static Explain Specify one of the following values:
|
STMTNO= (optional) | NA | Restricts the process to a single preprocessor SQL statement number associated with the object |
SUMRPT= (optional) | NA | Sort order of the batch Explain report, which contains one line for each object and statement Specify one of the following values:
|
SUPPRESSDET= (optional) | NA | Level of report detail printed during a batch Explain (used in conjunction with MSGLEVEL) Specify one of the following values:
|
TBQUAL= (optional) | 82 | Qualifier for objects and tables in the Explain Specify one of the following values:
|
TITLE= (optional) | NA | Title to display on each page of the batch report The maximum length is 64. |
VERSION= (optional) | 09 | Version value associated with a package The maximum length of this value is 122. 1 |
1 You can use any combination of execution parameters, as long as the total byte count of all execution parameters and their values does not exceed 100.
2 This value can be any number greater than 0. The default is 1.0.