Commands on the Db2 Command Processor panel
These commands are available on the Db2 Command Processor panel. Enter a command on the Command line and press Enter, or use the corresponding PF key.
- HIST
- (PF4) The HIST (history) command displays a list of the most recently issued commands; the commands can be selected for execution.The maximum number of prior commands saved in the history is controlled by the value entered in the History Size Limit field.
- HRETP
- (PF6) The HRETP command populates the input command area with the next most recent command issued. You can repeat the HRETP command to cycle through the command list, from the most recent command to the oldest.
- ?
- (PF13) Entering '?' in the command line displays a list of Db2 commands. If you select a command, a syntax diagram for the command is inserted about the input area on the Db2 Command Processor panel.
- HRETN
- (PF18) The HRETN command populates the input command area with the oldest command issued that is on the history list. For example, say the history contains the issued commands in this order: 1, 2, 4, 5, 3. HRETN will issue command 3. You can repeat the HRETN command to cycle through the command list, from the oldest command to the most recent.
- HCLEAR
- (PF24) The HCLEAR command clears the history database.
- PRINTX
- The PRINTX command can be used to write the output from a Db2 command that is displayed on the panel to a SYSOUT file. The output is created using the default output class defined on the system. If you do not know where your SYSOUT output is written to, check the HELD and OUTPUT queues with jobname=your user ID, or ask your systems programmer.