Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm
No new posts Create procedure issues -628 when add... chandraBE DB2 1 Mon Sep 18, 2017 12:16 pm
No new posts Reply MQ open error Vignesh Sid COBOL Programming 5 Thu Sep 07, 2017 6:02 pm
No new posts Error in SQL-PLIST3 'Above value tru... rikdeb DB2 4 Wed Sep 06, 2017 1:34 pm
No new posts WER268A OUTREC STATEMENT : SYNTAX E... frozenblood87 SYNCSORT 12 Sat Aug 26, 2017 9:45 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us