Opens the CLP-enabled DB2® window,
and initializes the DB2 command
line environment. Issuing this command is equivalent to clicking the DB2 Command Window icon.
This
command is only available on Windows operating
systems.
Command syntax
>>-db2cmd--+-------------+--+---------+------------------------><
'-option-flag-' '-command-'
Command parameters
- -c | /c
- Execute command following the -c option in
a new DB2 command window, and
then terminate. For example, db2cmd -c dir causes
the dir command to be invoked in a new DB2 command window, and then the DB2 command window closes.
- -w | /w
- Execute command following the -w option in
a new DB2 command window, and
wait for the new DB2 command
window to be closed before terminating the process. For example, db2cmd
/w dir invokes the dir command, and the
process does not end until the new DB2 command
window closes.
- -i | /i
- Execute command following the -i option while
sharing the same DB2 command
window and inheriting file handles. For example, db2cmd -i
dir executes the dir command in the same DB2 command window.
- -t | /t
- Execute command following the -t option in
a new DB2 CLP window with the
specified command as the title of this new window.
Usage notes
If DB21061E ("Command line
environment not initialized.") is returned when bringing up the CLP-enabled DB2 window, the operating system
may be running out of environment space. Check the
config.sys file
for the SHELL environment setup parameter, and increase its value
accordingly. For example:
SHELL=C:\COMMAND.COM C:\ /P /E:32768