Sets the environment of your current command window for the DB2® copy that db2envar.bat is executed from. This is useful if you want to switch between different DB2 copies from the command line.
This command is only available on Windows operating systems.
None
None
None
When there are multiple DB2 copies on a machine, the full path should be used to indicate which db2envar.bat is to be executed. For example, if you want to set up the environment for the DB2 copy that is installed under e:\sqllib, you should issuee:\sqllib\bin\db2envar.bat.