
Troubleshooting IBM_DB Python driver support through Db2 for z/OS ODBC
If you encounter problems when the IBM_DB Python driver accesses data through Db2 for z/OS ODBC, you can enable the application trace to collect diagnostics data for the problem.
Before you begin
- If the application fails with SQLCODE -805, the likely reason is that the Db2 for z/OS ODBC packages are not correctly bound. You can find a customizable sample JCL job in member DSNTIJCL of the SDSNSAMP data set. For more information, see Db2 ODBC run time environment setup.
- If the application packages are already bound, ensure that the correct bind options and DBRM library are used. Then, check the settings in the ODBC initialization file.
- If you are unsure whether the problem is related to the IBM_DB Python driver or Db2 for z/OS ODBC, open a case with IBM® Support for Db2 for z/OS.
- If you are certain that the problem is related to Python or the IBM_DB Python driver, open a case with IBM Support for IBM Open Enterprise Python for z/OS.
Procedure
If you suspect the problem is related to ODBC CLI driver support of the IBM_DB Python driver, collect the following diagnostics items before you open a support case with IBM Support for Db2 for z/OS ODBC.
