Db2 Admin Tool primary commands
Primary commands are issued from the command line on Db2 Admin Tool panels.
Each primary command can be categorized as one of the following types:
Global primary commands
The following table lists the available primary commands that you can issue from any panel in Db2 Admin Tool.Command | Alias | Description |
---|---|---|
APPLCOMPAT | APPLC | Sets the current application compatibility level for dynamic SQL
statements. This command is equivalent to issuing the SET CURRENT APPLICATION COMPATIBILITY statement. Syntax:
The specified function level must be equal to or less than the current version and function level and the APPLCOMPAT value that was specified for ADBMAIN at bind time. The new value applies to only the current Db2 connection and does not apply to new Db2 connections that might be established during the Db2 Admin Tool session. Examples:
|
CAPS | Temporarily overrides the Capitalize object
names setting on the Admin Defaults (ADB2P2)
panel. For more information about this setting, see Changing defaults. Syntax:
Specifying CAPS (without ON or OFF) toggles between CAPS ON and CAPS OFF. |
|
CAT | ? | Navigates
directly to an object. A question mark (?) is the default shortcut character for the catalog navigation command, CAT. You can specify a different character on the DB2 Admin Defaults (ADB2P2) panel in the CAT command character field. Syntax:
All parameters are optional. However, you must specify xx if you specify qualifier or name. Examples:
For a demonstration of how to use this command, see Video: Catalog Navigation Command. |
CATHLQ | Updates the high-level qualifier that Db2 Admin Tool is to use during the
current session for data sets for the Db2 catalog. This command displays the DB2 Space Manager (ADB2MSPC) panel, where you can specify the qualifier. |
|
CLREST | Restores packages that were freed by the collection
clean up function. This command displays the Restore Packages (ADBPBMRE) panel, where you can specify options for restoring the packages. See Restoring packages. |
|
CMDS | Displays the active user command list. | |
CMM | Opens the main menu for the Change Management (CM) function. This command displays the Change Management (CM) (ADB2C) panel, where you can choose which CM function you want to invoke. |
|
CON | Connects to a remote system. Syntax:
|
|
DB2 | db2 command | Issues a Db2 command. Syntax: DB2 can be omitted from the command.
Example:
|
DGRP | Runs the Db2 DISPLAY GROUP command. | |
DTT | Displays all threads. | |
DUTIL | Displays a list of active and stopped utilities. This list is displayed on the Display or Terminate Utilities (ADB2Z2U2) panel. See Displaying or terminating utilities. |
|
EXIT | Exits Db2 Admin Tool. | |
EXPLAIN | Changes the value of the Db2 CURRENT EXPLAIN MODE special
register. Depending on your prompt options, you might be asked to confirm the change before the SET statement is executed. See Changing Db2 Admin Tool prompt options. Syntax:
For more information about these values, see CURRENT EXPLAIN MODE special register (Db2 12 for z/OS documentation) . Example:
|
|
ISPF | Issues one or more ISPF statements. Syntax:
Example:
|
|
LEINFO | Displays Language Environment (LE) options. | |
OPTIONS | OPT | Allows you to change your Db2 Admin Tool settings. This command displays the DB2 Admin Options (ADB2P) panel, where you can select the settings that you want to change. |
OPTIONS BP | OPT BP | Allows you to change the parameters for utility batch jobs. This command displays the Batch Job Utility Parameters (ADB2UPA) panel, where you can specify parameters for your utility jobs. |
OPTIONS DISPLAY | OPT DISPLAY | Allows you to change the panel display. This command displays the Panel Display Options (ADBPPDO) panel, where you can select the items that you want displayed on panels. |
PANEL | Displays the specified panel.
This command allows you to extend your Db2 Admin Tool installation with your own panels and then use these panels directly with Db2 Admin Tool. You must design your panels to be invoked with this PANEL command. Your panels should not be designed to be part of a multi-panel dialog and rely on variables being set in the preceding panels. Otherwise, unpredictable results can occur. For more information about creating your own panels, see Db2 Admin Tool application development. Syntax:
Example:
|
|
PARMS | PARM | Displays the current Db2 Admin Tool parameters. This command displays the Admin Defaults (ADB2P2) panel, where you optionally make any changes to these default settings. |
PRINT TABLE | PRT TABLE | Prints the current table to the specified file. Syntax:
Tip: You can use option P.P to allocate a data set for PRINT
TABLE.
Example:
|
PROMPT (options) | PRMT | Changes Db2 Admin Tool prompt
options. Syntax:
If no options are specified after PROMPT or PRMT, the Prompt Options (ADB2PRMT) panel is displayed, and you can enter your preferences on that panel. Example:
|
QTAB | Displays open ISPF tables. | |
REGION | Displays used and available memory (TSO region information). | |
SAVE | Saves the current selections or report. When SAVE is issued on the Details for object(s) (ADBPD) panel, the detail report (which is generated by the DET command) is saved in the specified data set. |
|
SCHEMA | Changes the CURRENT SCHEMA special register. Depending on your prompt options, you might be asked to confirm the change before the SET statement is executed. See Changing Db2 Admin Tool prompt options. Syntax:
Example:
|
|
SHOW LIBRARY | SHOW LIB | Shows a member list for the specified library on the specified
panel. Syntax:
|
SHOW TABLE | Shows the specified table. Syntax:
|
|
SHOWPAN | Shows the source code for a panel. Syntax:
|
|
SMPLIST | Generates a job to run SMP/E list commands on the CSI. | |
SQL | + | Issues one or more SQL statements. If an SQL statement returns rows, the default table display panel shows the rows. Syntax:
If you do not specify an SQL statement, the Edit/Run SQL Statement (ADBPMESQ) panel is displayed. You can enter SQL statements on this panel and run them. Example:
|
SQLID | AUTH, AUTHID | Displays or changes the current SQLID. Syntax:
Example:
|
SSID | Switches to another Db2 SSID.
Syntax:
Example:
|
|
STATUS | STAT | Shows the current status of Db2 Admin Tool and execution control statement statistics. |
TESTTIME | Runs the TSO command TIME. | |
WSL | Opens the main menu for the Work Statement List (WSL) function.
This command displays the Manage Work Statement Lists (ADB2W) panel, where you can select the WSL list or list library that you want to view. |
|
ZPARM | Displays the Db2 subsystem parameter (zparm) values for the current subsystem. |
Primary commands for table display panels
The following table lists primary commands that you can issue from any table display panel. For more information about these panels, see Table display panels.
Command | Alias | Description |
---|---|---|
BROWSE | B, BR, BRO, BROW | Browses the current ISPF table. For more information about BROWSE, see BROWSE and VIEW panels. |
FIND | Finds a string on a table display panel. This command allows you to go directly to a particular string without having to scroll. The command starts at the row on which the cursor is positioned and searches all the columns, or the specified columns, for the specified string. If the string is found, the cursor is placed at the row. Syntax:
To find the column numbers for fromcolno and tocolno, issue the SORT command without any parameters. You can specify RFIND to repeat the last FIND command. Examples:
|
|
ORDER | Defines or modifies the ORDER BY clause in the SQL statement that
retrieves data for the panel. This command displays the Order By Columns (ADB2SORT) panel, where you can specify the ORDER BY criteria. |
|
REFRESH | REF | Refreshes the current ISPF table with data from Db2. |
SAVE TABLE AS | Saves the current ISPF table with the specified name in the
specified library. Syntax:
|
|
SEARCH | SARG | Searches the current ISPF table. This command displays the Search fields (ADB2SARG) panel, which lists all of the columns in the current ISPF table. On this panel you can specify searches on individual columns by entering a search operator and a search value for the columns. See Filtering data on panels. Syntax:
|
SORT | Sorts the current ISPF table based on the specified column or
columns. Syntax:
|
|
VIEW | VI | Opens a VIEW session for the current ISPF table. For more information about VIEW, see BROWSE and VIEW panels. |
Primary commands for specific panels
The following table lists primary commands that are specific for certain panels.
Command | Alias | Description |
---|---|---|
ADD | Adds objects. | |
ADDC | Adds a check constraint. | |
ADDCOL | Adds a column to an index. | |
ADDU | Adds a unique or primary constraint. | |
AE | Displays all authorizations that are explicitly granted. | |
AI | Displays all authorizations that are held implicitly. | |
ALL | Lists all objects of a specified type for each object in a list of objects. For example, for a list of indexes on panel ADB21X, the ALL T command displays all tables that are associated with those indexes. | |
ALTOPT | Lets you specify options to control ALT processing. | |
AP | Displays all authorizations that are granted to PUBLIC. | |
ARCHIVE | Archives partitions from an accelerated table. | |
AU | Displays all authorizations that are held directly. | |
BALANCE | Sets the size for each partition to the average size. | |
BET | Generates a detail report in batch mode for tables and related
objects, packages, and accelerated tables. The report displays the following types of information for tables and their related objects:
The package details report displays the following information:
This command is available on the Tables, Views, and Aliases (ADB21T) panel , the Packages (ADB21K) panel), and the Display Accelerated Tables (ADBPZAT) panel. |
|
BIND | Generates BIND commands for multiple application packages or plans. The BIND commands are created in a work statement list. This command is valid only when packages or plans are displayed. | |
BINDOPT | Lets you specify bind and rebind options that are not in the Db2 catalog records. | |
BP | Change the batch parameters that are to be used. | |
CALL | Calls the procedure. | |
CAPTURE | Displays START DYNQUERYCAPTURE panel to stabilize cached dynamic SQL statements. | |
CHKNTS | Checks whether any of the new table spaces already exist when moving tables from multi-table table spaces to UTS. | |
CHKPDC | Checks whether any of the existing table spaces have pending changes. | |
CLEAR | Deletes all the rows. | |
COLUMNS | Performs a column lookup when primary, unique, or foreign key constraints are being added. | |
COMMENT | Toggles between displaying comments and hiding comments. COMMENT ON displays comments on a second line. COMMENT OFF hides comments. Entering COMMENT without ON or OFF toggles between the two settings. |
|
COMP | Defines individual tracing components whose trace levels deviate from the default trace level. | |
CONSTRAINTS | Adds, alters, or drops a primary key, unique key, check constraint, or referential constraint for the table. | |
COPY | C | Runs the COPY utility on all objects in the list. |
COPYALL | CA | Runs the COPY utility on all partitions in a single step. |
CT | Migrates objects by using Db2 Cloning Tool. | |
DDEF | Displays Db2 definitions for the selected page sets. | |
DEL | Deletes all listed objects. | |
DET | Generates a detail report in online mode
for tables and related objects, packages, and accelerated tables. The detail report contains the same information as the report for the BET command and is available from the same panels. Restriction: The DET primary command is
available for only the following table types:
|
|
DIS | Generates a Db2 command to display information for all listed objects. This command is valid only when databases, table spaces, or indexes are displayed. | |
DISABLE | Disables the table for acceleration. | |
DISPINFO | Displays additional information (replication status and row count) for the table. | |
DISPOPT | Displays criteria to filter the list of accelerated tables. | |
DISPREF | Restores the original display on the Display Accelerated Tables (ADBPZAT) panel. | |
DROP | Drops all of the listed objects. You are prompted to confirm this DROP operation before it is executed. |
|
DSTAT | Displays Db2 statistics for the selected page sets. | |
EDIT | Enables editing of the objects that are listed in a panel. | |
ENABLE | Enables the table for acceleration. | |
EXPLSTMTCACHE | Extracts EXPLAIN records for all cached statements into the DSN_STATEMENT_CACHE_TABLE table. | |
EXPORT | Exports the multi-target change information to a file on the target system. | |
EXPRESSION | Creates a new key-expression. You can create multiple expressions. This command is available only the Create Index (ADB21XAR) panel. |
|
EXTENTS | Displays the estimated number of extents needed. | |
EXTERNAL | Toggles to a view which includes the External Name column. | |
FREE | Generates FREE commands for multiple application packages or plans. The FREE commands are created in a work statement list. This command is valid only when packages or plans are displayed. | |
FREEALL | Frees all stabilized dynamic queries. | |
FREEINV | Frees all invalid stabilized dynamic queries. | |
FREEINVCOPY | Frees only copies of stabilized dynamic queries that are invalid. | |
GEN | Generates SQL for the objects from the Db2 catalog. | |
GRANT | Generates a GRANT statement for all objects that are listed. The
GRANT command is useful on authorization panels when copying authorizations from one
user to one or more other users. This command is valid only when the values in the Grantee column are the same and one of the following types of objects are displayed: databases, tables, views, aliases, packages, plans, sequences, stored procedures, user-defined functions, user-defined data types, or authorizations. |
|
HASH | Enables fast access to a row by hashing a key value and storing the hash value in a unique index. | |
HINT | Switches panel format to show hint IDs and hints used. | |
INCCOPY | CI | Creates an incremental copy (COPY FULL NO) of all objects in the list. |
INCCOPYALL | CIA | Runs COPY FULL NO on all partitions in a single step. |
INDEX | Switches panel format to show index name and schema. | |
JOBINFO | Displays JOBNAME and TIME STARTED values for utility jobs. | |
LASTPG | Displays the last logical page of statistics for the selected page sets. | |
LIKE | Switches the LIKE operator ON or OFF for search criteria. This command is valid only on the System Catalog (ADB21) panel. | |
LOAD | Loads or reloads data into a table. | |
LONGNAMES | Displays column names of 30 characters. Use the LONGNAMES and the SHORTNAMES commands to toggle between 30-character and 18-character column names on the panel. |
|
MAKEPBG | Converts the table space to a parition-by-growth (PBG) table
space. This command initializes input fields Numparts=0 and Max Partitions>0 to allow the conversion to a PBG table space. |
|
MAKEPBR | Converts the table space to a parition-by-range (PBR) table space
with absolute page numbering. This command initializes input fields Numparts>0, Max Partitions=0, and SEGSIZE>0 to allow the conversion to a PBR table space with absolute page numbering. |
|
MAKEPBR2 | Converts the table space to a parition-by-range (PBR) table space
with relative page numbering. This command initializes input fields Numparts>0, Max Partitions=0, SEGSIZE>0, and PAGENUM=R to allow the conversion to a PBR table space with relative page numbering. |
|
MIG | Migrates the displayed objects. This command is valid only when databases, table spaces, or tables are displayed. | |
MOVETB | Moves tables from multi-table table spaces to partition-by-growth (PBG) universal table spaces (UTS). | |
NEXT | Move to the next panel or generate a batch job. | |
NEXTCOL | Saves changes for the current column and moves to the next updatable table column. | |
OBJAUTH | Switch panel format to show system object authorizations. | |
ORIGINAL | Restores values to their existing state. | |
PACKAGES | List the packages that are affected by moving the tables. | |
PLANMGMT | Displays the plan management attributes for the packages. | |
QUALIFIER | Displays the qualifier for the packages. | |
RE-SORT | Re-sorts the table to its original sequence. | |
REBIND | Generates REBIND commands for multiple application packages or plans.
The REBIND commands are created in a work statement list and contain only the package
or plan name. This command is valid only when packages or plans are displayed. When you specify REBIND, the resulting BIND commands contain only the package or plan name. Specify REBIND FULL to have the resulting BIND commands contain both the package or plan name and all of the parameters. |
|
REFRTS | Retrieves current real-time statistics for all objects in the list. | |
REORG | O | Runs the REORG utility on all objects in the list. |
REORGALL | OA | Runs the REORG utility on all partitions in a single step. |
REP | Generates a batch job that produces a printable report of the objects in the Db2 catalog. | |
RESET | Clears or deselects the list. | |
RESTORE | Restores objects or settings. When RESTORE is issued on the Restore Partitions (ADBP1ARC) panel, the selected archived partitions are restored. |
|
RESZ | Generates jobs to resize page sets. | |
REVOKE | Generates REVOKE statements for all of the system authorities, user authorities, and object authorizations that are listed for the specified grantees. When you issue the REVOKE command, you are prompted to confirm that you want to execute the command because of the significant impact of the REVOKE command. | |
RMIMPL | Removes rows that represent implicit grants so that only explicitly
granted authorizations are displayed. Implicit grants are grants where
Grantor is the same as Grantee or
GT (Grantee type) is P. To restore the display to include the implicit grants again, use the REFRESH command. |
|
RO | Restore packages using the original DBRM. | |
ROTATE | Rotates a partition. | |
RR | Restore packages using the regenerated DBRM. | |
RTS | Displays real-time statistics for the tables listed on the panel. | |
RTSO | Displays real-time statistics for the tables listed on the panel using the user-defined options. | |
RUNSTATS | R | Runs the RUNSTATS utility on all objects in the list. |
RUNSTATSALL | RA | Runs the RUNSTATS utility on all partitions in a single step. |
SHORTNAMES | Displays column names of 18 characters. Use the LONGNAMES and the SHORTNAMES commands to toggle between 30-character and 18-character column names on the panel. |
|
SPACE | Shows the amount of space (in KB) that is used for the VSAM page set. | |
STA | Generates a Db2 command to start all listed objects. This command is valid only when databases, table spaces, or indexes are displayed. | |
STARTTRACE | Starts a performance trace with IFCID 316, 317 or 318 and enable extraction of EXPLAIN records for all cached statements. | |
STO | Generates a Db2 command to stop all listed objects. This command is valid only when databases, table spaces, or indexes are displayed. | |
STOPGROUP | Stops all active capture monitors on all members of the data sharing group. | |
STOPLOCAL | Stops all active capture monitors on the local subsystem. | |
SYSAUTH | Switch panel format to show system authorizations. | |
TABLE | Switches panel format to show table name and schema. | |
TBLOPTS | Allows you to modify additional table attributes and specify period definitions for the table. You make these modifications on the Alter - Table Options (ADBP7TOP) panel. | |
TU | Changes the use of Db2 templates. | |
WSLOPT | Set work statement list (WSL) options. | |
UTIL | Generates utility JCL for the table spaces in all of the listed databases. | |
UO | Modifies utility options. | |
VALUES | Displays current LIMITKEY values for each partition. | |
VDEF | Displays VSAM definitions for the selected page sets. | |
VERSION | Toggles to a view which includes the Version and A (Active) columns | |
VERSIONS | Displays the package version, bind timestamp, and consistency token. | |
VSTAT | Displays VSAM statistics. | |
XSPACE | Displays the index space names. | |
ZOOM | Collapses or expands a section or all sections. |