The db2dj.ini file contains the required and
optional environment variables for a data source.
When you modify the db2dj.ini file, keep
these restrictions in mind.
To specify each variable, use
the format variable_name=variable_value
where
- variable_name is the name of the environment variable.
- variable_value is the value.
To specify a file name or directory name as the variable_value,
specify the fully qualified name. The name cannot contain file name meta characters
such as ~ (tilde) and environment variables, such as $HOME. For example, to
set the INFORMIXDIR environment variable to the
informix directory
and the home directory that is named
/home/user1, specify
this value in the db2dj.ini file:
INFORMIXDIR=/home/user1/informix
Keep
these limits in mind:
- The maximum length for the name of an environment variable is 255 bytes
- The maximum length for the value of an environment variable is 756 bytes
- The maximum length for a line in the db2dj.ini file
is 1021 bytes; data beyond this length is ignored.