DB2 10.5 for Linux, UNIX, and Windows

db2envar.bat - Set environment of the current command window command

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.

Authorization

None

Required Connection

None

Command Syntax

Read syntax diagramSkip visual syntax diagram
>>-db2envar.bat------------------------------------------------><

Command parameters

None

Usage notes

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.