enableDefaultClientInfo IBM data server driver configuration keyword

Specifies whether the default client information register values, which are set on the Db2® for z/OS® server, are returned to the application.

Equivalent CLI keyword
N/A
Equivalent IBM® data server provider for .NET connection string keyword
N/A
IBM data server driver configuration file (db2dsdriver.cfg) syntax
<parameter name="enableDefaultClientInfo" value="True | False"/>
Default setting:
The default value is False.
Usage notes:
The enableDefaultClientInfo keyword can be specified for use with CLI, embedded SQL, or .NET applications when you are connecting to the Db2 for z/OS database.

A client sends the default client information register values to the Db2 for z/OS server when they are not explicitly set by the user.

When the enableDefaultClientInfo keyword is set to True, CLI, embedded SQL, and .NET applications can retrieve default client information register values that are set on the Db2 for z/OS server.

For all client information registers other than the CURRENT CLIENT_WRKSTNNAME register, the following scenarios occur when user attempts to fetch the client register information from the Db2 for z/OS database without setting the enableDefaultClientInfo keyword.
  • If you do not explicitly set the client information register on the Db2 for z/OS database from the client, the null value is returned for the register value.
  • If you set the client information registers from the data server client, the register values that are currently set by the client are returned.
When you set the enableDefaultClientInfo keyword to True, the following scenarios occur for all client information registers other than the CURRENT CLIENT_WRKSTNNAME register when you attempt to fetch the client register information from the Db2 for z/OS database.
  • If you do not explicitly set the client information register on the Db2 for z/OS database from the data server client, the client register values that are set by default on the Db2 for z/OS database is returned.
  • If you set the client information registers from the data server client, the register values that are currently set by the client are returned.
For the CURRENT CLIENT_WRKSTNNAME register, the following scenarios occur when user attempts to fetch the CURRENT CLIENT_WRKSTNNAME register information from the Db2 for z/OS database without setting the enableDefaultClientInfo keyword.
  • If you do not set the client workstation name register from the data server client, the host name of the client machine is returned for the register value.
  • If you do not set the client workstation name register but set the ClientWrkStnName keyword in the db2cli.ini file to 'NODEFAULT', the null value is returned for the register value. The db2cli.ini keywords affect applications that use the CLI driver.
  • If you do not set the client workstation name register but set the ClientWorkstationName IBM data server driver configuration keyword to 'NODEFAULT', the null value is returned for the register value.
  • If you set the client workstation name register from the data server client, the register value that is set by the client is returned.
When you set the enableDefaultClientInfo keyword to True, the following scenarios occur when user attempts to fetch the CURRENT CLIENT_WRKSTNNAME register information from the Db2 for z/OS database.
  • If you do not set the client workstation name register from the data server client, the host name of the client machine is returned for the register value.
  • If you do not set the client workstation name register but set the ClientWrkStnName keyword in the db2cli.ini file to 'NODEFAULT', the CURRENT CLIENT_WRKSTNNAME register value that is set by default on the Db2 for z/OS database is returned. The db2cli.ini keywords affect applications that use the CLI driver.
  • If you do not set the client workstation name register but set the ClientWorkstationName IBM data server driver configuration keyword to 'NODEFAULT', the CURRENT CLIENT_WRKSTNNAME register value that is set by default on the Db2 for z/OS database is returned.
  • If you set the client workstation name register from the data server client, the register value that is set by the client is returned.