Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Error while executing the query :sqlcode 104 illegal symbol

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Error while executing the query :sqlcode 104 illegal symbol
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    Post subject:
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    Post subject:
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: 205
Location: Bangalore

PostPosted: Mon May 24, 2010 3:57 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 1 Mon May 29, 2017 8:10 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts IDC2902I Error tzeche ABENDS & Debugging 2 Tue Mar 28, 2017 11:39 am
No new posts Need help with below DB2 error ashek15 DB2 3 Sat Mar 18, 2017 5:56 am
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us