You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: INSTALL.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -383,6 +383,12 @@ else:
383
383
print('ODBC Test end')
384
384
```
385
385
386
+
#### Troubleshooting
387
+
388
+
**Important:** When working with `ibm_db` or `ibm_db_dbi` on z/OS environments such as USS and BPXBATCH, always use the provided APIs — `conn_errormsg()`, `conn_error()`, `stmt_errormsg()`, `stmt_error()`, and `get_sqlcode()` — to retrieve error messages, SQLSTATE and SQLCODE values for connection or statement failures.
389
+
Avoid using direct `print()` statements or relying on raw exception output, as this may result in missing or unreadable error messages, or `UnicodeDecodeError` due to encoding limitations on these platforms.
390
+
These APIs ensure consistent and reliable error handling across all supported environments.
391
+
386
392
## <a name="m1chip"></a> 3. ibm_db installation on MacOS M1/M2 Chip System (arm64 architecture)
387
393
**Important:
388
394
> ibm_db@3.2.5 onwards supports native installation on MacOS ARM64(M* Chip/Apple Silicon Chip) system using clidriver/dsdriver version 12.1.0.
#[IBM][CLI Driver][DB2/LINUXX8664] SQL0104N An unexpected token "END-OF-STATEMENT" was found following "INVALID SQL". Expected tokens may include: "JOIN <joined_table>". SQLSTATE=42601 SQLCODE=-104
38
+
#42601
39
+
#__ZOS_EXPECTED__
40
+
#[IBM][CLI Driver][DB2/LINUXX8664] SQL0104N An unexpected token "END-OF-STATEMENT" was found following "INVALID SQL". Expected tokens may include: "JOIN <joined_table>". SQLSTATE=42601 SQLCODE=-104
41
+
#42601
42
+
#__SYSTEMI_EXPECTED__
43
+
#[IBM][CLI Driver][AS] SQL0104N An unexpected token "END-OF-STATEMENT" was found following "INVALID SQL". Expected tokens may include: "JOIN <joined_table>". SQLSTATE=42601 SQLCODE=-104
44
+
#42601
45
+
#__IDS_EXPECTED__
46
+
#[IBM][CLI Driver][IDS/LINUXX8664] SQL0104N An unexpected token "END-OF-STATEMENT" was found following "INVALID SQL". Expected tokens may include: "JOIN <joined_table>". SQLSTATE=42601 SQLCODE=-104
0 commit comments