---
title: "DB2 – ILLEGAL Symbol"
description: "DB2 Illegal symbol error and resolution"
url: https://srinimf.com/2011/12/18/db2-illegal/
date: 2011-12-18
modified: 2026-10-10
author: "Srini"
image: https://i0.wp.com/srinimf.com/wp-content/uploads/2011/12/pexels-photo-1986996.jpeg?fit=1880%2C1253&ssl=1
categories: ["DB2"]
tags: ["db2", "Empty", "Illegal Symbol"]
type: post
lang: en
---

# DB2 – ILLEGAL Symbol

I found an explanation for this error in IBM site as follows…read on. -104 ILLEGAL SYMBOL ***“token”.*** SOME SYMBOLS THAT MIGHT BE LEGAL ARE:*** token-list Explanation***

A syntax error was detected where the symbol “token” occurs in the SQL statement. The list of symbols that might be legal shows some alternate symbols that could possibly be correct at that point, if the preceding part of the statement is entirely correct. However, the preceding part of the statement might be incorrect.

> What is -104 error?

For example, if an important keyword is omitted, DB2® detects the error later, and not always immediately after the point where the keyword should appear.

Related[DB2 SQL Error Codes You Always Need](https://srinimf.com/2010/10/23/sql_error_codes/)

The list of alternate symbols are only suggestions. Some of those symbols might not even be legal for statements to be [executed by DB2](https://srinimf.com/2015/01/28/db2-sql-error-codes-104-and-199/).

Related[How to Join 3 Tables—Without Join Keyword](https://srinimf.com/2021/04/24/how-to-sql-query-to-join-three-tables/)

Those symbols are possibly correct for statements sent to other database management systems. This SQLCODE will also be issued if the RELEASE TO SAVEPOINT statement is specified without a savepoint name.

The other way round we get this error:

*DSNH104I E  DSNHSM10 LINE yy COL yy  ILLEGAL SYMBOL “”.          SOME SYMBOLS THAT MIGHT BE LEGAL ARE: CORRELATION NAME*

More understanding refer  [detail1](http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=%2Fcom.ibm.db2z9.doc.codes%2Fsrc%2Ftpc%2Fdb2z_n.htm) and [detail2](https://www-304.ibm.com/support/docview.wss?uid=swg1PK74108).

**Recent Posts**

- [30 SQL Practice Queries with Solutions — Run Them Live](https://srinimf.com/2026/10/01/30-sql-practice-queries-with-solutions-run-them-live/)
- [Supercharge Your Database Skills: Try Our New Interactive SQL Plugin!](https://srinimf.com/2026/09/30/supercharge-your-database-skills-try-our-new-interactive-sql-plugin/)
- [How to Count Spark Stages by Sight and Optimize Shuffles](https://srinimf.com/2026/09/27/how-to-count-spark-stages-by-sight-and-optimize-shuffles/)

### Share this:

-
- [Tweet](https://twitter.com/share)
- [![](https://i0.wp.com/assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png)](https://www.pinterest.com/pin/create/link/?url=https%3A%2F%2Fsrinimf.com%2F2011%2F12%2F18%2Fdb2-illegal%2F&media=https%3A%2F%2Fi0.wp.com%2Fsrinimf.com%2Fwp-content%2Fuploads%2F2011%2F12%2Fpexels-photo-1986996.jpeg%3Ffit%3D1200%252C800%26ssl%3D1&description=DB2%20-%20ILLEGAL%20Symbol)
-
- [Share on Tumblr](https://www.tumblr.com/share)
- [Share on WhatsApp (Opens in new window) WhatsApp](https://srinimf.com/2011/12/18/db2-illegal/?share=jetpack-whatsapp)
- [More](#)
-

- [Print (Opens in new window) Print](https://srinimf.com/2011/12/18/db2-illegal/?share=print)
- [Share on Reddit (Opens in new window) Reddit](https://srinimf.com/2011/12/18/db2-illegal/?share=reddit)
- [Share on Telegram (Opens in new window) Telegram](https://srinimf.com/2011/12/18/db2-illegal/?share=telegram)
- [Email a link to a friend (Opens in new window) Email](mailto:?subject=%5BShared%20Post%5D%20DB2%20-%20ILLEGAL%20Symbol&body=https%3A%2F%2Fsrinimf.com%2F2011%2F12%2F18%2Fdb2-illegal%2F&share=email)
-

### Like this:

Like Loading…
