ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » WMQI 2.1 Error on Join tables with ESQL

Post new topic  Reply to topic
 WMQI 2.1 Error on Join tables with ESQL « View previous topic :: View next topic » 
Author Message
Gama
PostPosted: Tue Jan 11, 2005 3:53 am    Post subject: WMQI 2.1 Error on Join tables with ESQL Reply with quote

Centurion

Joined: 11 Jan 2005
Posts: 103
Location: Portugal

Hi all,
i'm using WMQI v2.1 and i want to use the ESQL do make a select on a database involving 2 tables, but the WMQI return an error.
The select is:
SET Environment.Variables."SYS_MSG"[] = (SELECT Cc.MSG_CLIENT, T.MSG_TYPE FROM Database.ITG_SYS_MSG as T, Database.ITG_SYS_MSG_CHECK as Cc WHERE CAST(T.MSG_ID as CHARACTER) = CAST("InputRoot"."MQMD"."MsgId" as CHARACTER) AND T.ID = Cc.MSG_ID );

the error return is:
...
RecoverableException BIP2519E: (1, 1) : Error executing SQL statement 'SELECT Cc.MSG_CLIENT, T.MSG_TYPE, T.MSG_ID FROM ITG_SYS_MSG TITG_SYS_MSG_CHECK Cc WHERE (T.ID)=(Cc.MSG_ID)' against datasource 'COTEDITG' with parameters ''.
The following error occurred during execution of a database SQL statement against datasource 'COTEDITG'. The SQL statement was 'SELECT Cc.MSG_CLIENT, T.MSG_TYPE, T.MSG_ID FROM ITG_SYS_MSG TITG_SYS_MSG_CHECK Cc WHERE (T.ID)=(Cc.MSG_ID)'. The parameters passed were ''.
DatabaseException BIP2321E: Database error: ODBC return code '-1'.
The message broker encountered an error whilst executing a database operation. The ODBC return code was '-1'. See the following messages for information obtained from the database pertaining to this error.
Use the following messages to determine the cause of the error. This is likely to be such things as incorrect datasource or table names. Then correct either the database or message broker configuration.
DatabaseException BIP2322E: Database error: SQL State '42601'; Native Error Code '-104'; Error Text '[IBM][CLI Driver][DB2/NT] SQL0104N An unexpected token "Cc" was found following "G TITG_SYS_MSG_CHECK". Expected tokens may include: "<space>". SQLSTATE=42601
'.
The error has the following diagnostic information: SQL State '42601' SQL Native Error Code '-104' SQL Error Text '[IBM][CLI Driver][DB2/NT] SQL0104N An unexpected token "Cc" was found following "G TITG_SYS_MSG_CHECK". Expected tokens may include: "<space>". SQLSTATE=42601
'
This message may be accompanied by other messages describing the effect on the message broker itself. Use the reason identified in this message with the accompanying messages to determine the cause of the error.
...

Can anybody tell me want i'm doing wrong.
Thanks in advance.
Back to top
View user's profile Send private message
kirani
PostPosted: Tue Jan 11, 2005 6:03 am    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

What is your CSD level?
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
Gama
PostPosted: Tue Jan 11, 2005 6:08 am    Post subject: Reply with quote

Centurion

Joined: 11 Jan 2005
Posts: 103
Location: Portugal

The version of CSD are 7
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » WMQI 2.1 Error on Join tables with ESQL
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.