Article ID: 2653101 - View products that this article applies to.
In a Microsoft Host Integration Server 2010 environment, you may notice that the Microsoft OLE DB Provider for DB2 ignores positive SQLCodes that are returned from DB2. For example, if DB2/MVS (which refers to DB2 for z/OS) returns a SQLCode=+802, SQLState=01519 error, this indicates that a general arithmetic error occurred during the operation. This error might be an overflow error, a divide-by-zero error, or a similar error.
To resolve this problem, apply the hotfix that is described later in this section.
If you want to capture warning messages as error messages, add the new Db2WarningsAsError registry variable to the following registry location:
This new entry enables positive SQLCode warning messages such as divide by zero or decimal overflow to return an exception error to the application.
HKEY_LOCAL_MACHINE\Software\Microsoft\Host Integration Server\Data Integration
Value name: Db2WarningsAsError
Value type: REG_MULTI_SZ (Multi-string value)
Value data: SQLCodes that you want to capture as an exception in your application (for example, 105, 408, and 802). Each SQLCode must be on a separate line, as in the following example:
Collapse this imageExpand this image
For example, a decimal-overflow warning message on DB2/MVS is displayed as an exception error that resembles the following:
Or, a divide-by-zero warning message is displayed as an exception error that resembles the following:
EXCEPTION ERROR DECIMAL OVERFLOW?MULTIPLICATION?DECIMAL?XXX HAS OCCURRED DURING OPERATION ON DATA, POSITION SQLSTATE:01519, SQLCODE: 802
EXCEPTION ERROR ZERO DIVIDE?DIVISION?DECIMAL?001? HAS OCCURRED DURING OPERATION ON DATA, POSITION SQLSTATE: 01519, SQLCODE: 802
Hotfix informationA supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing the problem described in this article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.
If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.
Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft website:
http://support.microsoft.com/contactus/?ws=supportNote The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.
PrerequisitesYou must have Host Integration Server 2010 installed to apply this hotfix.
Restart informationYou may have to restart the computer after you apply this hotfix.
Replacement informationThis hotfix does not replace a previously released hotfix.
File informationThe English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
For Microsoft Host Integration Server 2010, 32-bit edition
Collapse this tableExpand this table
For Microsoft Host Integration Server 2010, 64-bit edition
Note Because of file dependencies, the most recent fix that contains these files may also contain additional files.
Collapse this tableExpand this table
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Contact us for more help
Connect with Answer Desk for expert help.