Defining your own line commands and primary commands for specific panels
You can define your own Db2 Admin Tool commands for each panel. For example, you might want to define line commands to start another ISPF-based tool with parameters from the current row, to display the contents of related tables, or to change the contents of the displayed row by using an SQL statement.
About this task
By using the ADBLCMDS command table, you can define line commands and primary commands for specific panels. The ADBLCMDS ISPF table has the following columns:
Column | Description |
---|---|
CPAN | The name of the panel for which the command is defined. |
CMD | The command. The command must be the key in the table.
If you set CMD to *MYCMD, MYCMD can be used as a primary command on the panel. The asterisk (*) indicates that the command is a primary command. The combination of the CPAN value and the CMD value must be unique for each row in the table. |
DESCR | A description of the command. This description is displayed if you enter a question mark (?) to request further information. |
SQL | The SQL statement that is run for this command. If PAN is also set, the result is displayed on that panel. |
PAN | The panel to display as a result of this command. |
ISPF | The ISPF statement that is run for this command. For example,
specify SELECT CMD(execname) to run an
exec. |
ACMD | The Db2 Admin Tool command that is run for this command. |
Prior to the introduction of the ADBLCMDS table, commands were defined by running REXX execs to produce ISPF line command tables for each panel. That method is no longer supported. Instead, you must define those line commands in the ADBLCMDS table by using the following procedure. The ADBLCMDS table has the same columns as the ISPF line command tables plus one additional column to specify the panel to which the command applies.
Procedure
To define your own commands for a panel:
Results
When you issue the ? line command on any panel, Db2 Admin Tool displays both the line commands that are predefined for the panel and the line commands that you defined in ADBLCMDS for the panel.