IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Error while executing the query :sqlcode 104 illegal symbol


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
balajipradeep

New User


Joined: 12 Mar 2009
Posts: 21
Location: chennai

PostPosted: Fri May 21, 2010 7:53 pm
Reply with quote

hi

below are my code

Code:
SELECT  CERT_NBR, PRDT_TYPE_CDE                               
      FROM   UCPROD.UBR_PARENT_CERT                           
     WHERE (PRDT_TYPE_CDE='PDP ' AND CERT_NBR='N00368967') OR
           (PRDT_TYPE_CDE='MAPD' AND CERT_NBR='N00733613') OR
           (PRDT_TYPE_CDE='MAPD' AND CERT_NBR='N00733667') OR
           (PRDT_TYPE_CDE='MAPD' AND CERT_NBR='N00738510') OR
           (PRDT_TYPE_CDE='MAPD' AND CERT_NBR='N00742070') OR
           (PRDT_TYPE_CDE='MA  ' AND CERT_NBR='N00743284') OR
           (PRDT_TYPE_CDE='MA  ' AND CERT_NBR='N00745075') OR
           (PRDT_TYPE_CDE='MA  ' AND CERT_NBR='N00752625') OR
           (PRDT_TYPE_CDE='MAPD' AND CERT_NBR='N00753097') OR
           (PRDT_TYPE_CDE='MA  ' AND CERT_NBR='N00754770') OR
           (PRDT_TYPE_CDE='MAPD' AND CERT_NBR='N00760092') OR
           (PRDT_TYPE_CDE='MAPD' AND CERT_NBR='N00770990') OR
           (PRDT_TYPE_CDE='MAPD' AND CERT_NBR='N00777288') OR
           (PRDT_TYPE_CDE='MAPD' AND CERT_NBR='N00782741')

am getting the following mess

DSNT408I SQLCODE = -104, ERROR: ILLEGAL SYMBOL " ". SOME SYMBOLS THAT MIGHT BE LEGAL ARE: ( + - ? : NOT CASE CAST USER
EXISTS <FLOAT> CURRENT NEXTVAL

DSNT418I SQLSTATE = 42601 SQLSTATE RETURN CODE
DSNT415I SQLERRP = DSNHPARS SQL PROCEDURE DETECTING ERROR
DSNT416I SQLERRD = 502 0 0 -1 116 0 SQL DIAGNOSTIC INFORMATION


How to fix this?
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Mon May 24, 2010 8:37 am
Reply with quote

Don't see any syntax error. .Are you sure what you have posted is what you executed???
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Mon May 24, 2010 9:22 am
Reply with quote

Check the query by doing HEX ON for any non displayable(unwanted) characters..
I just simulated one.... I was able to get similar error...
Back to top
View user's profile Send private message
Ajay Baghel

Active User


Joined: 25 Apr 2007
Posts: 206
Location: Bangalore

PostPosted: Mon May 24, 2010 3:57 pm
Reply with quote

Looks like you are missing semicolon (;) at the end of the query.


Try with it.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts RC query -Time column CA Products 3
No new posts Dynamically pass table name to a sele... DB2 2
Search our Forums:

Back to Top