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 » Not able to set CCSID in esql

Post new topic  Reply to topic
 Not able to set CCSID in esql « View previous topic :: View next topic » 
Author Message
sandyvedi
PostPosted: Thu Mar 06, 2014 11:52 am    Post subject: Not able to set CCSID in esql Reply with quote

Newbie

Joined: 06 Mar 2014
Posts: 3

I am trying to set the CCSID in the esql like below.


DECLARE CCSIDTOUSE INTEGER;
SET CCSIDTOUSE = CAST( InputRoot.Properties.CodedCharSetId AS INTEGER);

DECLARE uSTREAM CHAR CAST(InputRoot.DataObject.*[1].IDocStreamData AS CHAR CCSID CCSIDTOUSE);
DECLARE uBLOBSTREAM BLOB CAST(InputRoot.DataObject.*[1].IDocStreamData AS BLOB CCSID CCSIDTOUSE);

But its not working. I am new to broker please dont mind in-case any basic mistakes.I have taken this piece of code from our repository and tried to modify the same.

Please help
Back to top
View user's profile Send private message
kimbert
PostPosted: Thu Mar 06, 2014 11:53 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Please define 'not working'. What is actually happening. What have you tried?
Have you looked at recent posts in this forum ( especially ones that talk about IDocStreamData )?
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
Back to top
View user's profile Send private message
sandyvedi
PostPosted: Fri Mar 07, 2014 2:06 am    Post subject: Reply with quote

Newbie

Joined: 06 Mar 2014
Posts: 3

Aplogies for not providing complete error details :-

Below is the erro what I am getting -

Idoc Number - NULL
( ['MQROOT' : 0x11802e430]
(0x01000000:Name):RecoverableException = (
(0x03000000:NameValue):File = '/build/S700_P/src/DataFlowEngine/ImbComputeNode.cpp' (CHARACTER)
(0x03000000:NameValue):Line = 489 (INTEGER)
(0x03000000:NameValue):Function = 'ImbComputeNode::evaluate' (CHARACTER)
(0x03000000:NameValue):Type = 'ComIbmComputeNode' (CHARACTER)
(0x03000000:NameValue):Name = 'SAP2MB_IDOC#FCMComposite_1_6' (CHARACTER)
(0x03000000:NameValue):Label = 'SAP2MB_IDOC.CPT.PROCESS.IDOC' (CHARACTER)
(0x03000000:NameValue):Catalog = 'BIPmsgs' (CHARACTER)
(0x03000000:NameValue):Severity = 3 (INTEGER)
(0x03000000:NameValue):Number = 2230 (INTEGER)
(0x03000000:NameValue):Text = 'Caught exception and rethrowing' (CHARACTER)
(0x01000000:Name ):RecoverableException = (
(0x03000000:NameValue):File = '/build/S700_P/src/DataFlowEngine/ImbRdl/ImbRdlStatementGroup.cpp' (CHARACTER)
(0x03000000:NameValue):Line = 643 (INTEGER)
(0x03000000:NameValue):Function = 'SqlStatementGroup::execute' (CHARACTER)
(0x03000000:NameValue):Type = 'ComIbmComputeNode' (CHARACTER)
(0x03000000:NameValue):Name = 'SAP2MB_IDOC#FCMComposite_1_6' (CHARACTER)
(0x03000000:NameValue):Label = 'SAP2MB_IDOC.CPT.PROCESS.IDOC' (CHARACTER)
(0x03000000:NameValue):Catalog = 'BIPmsgs' (CHARACTER)
(0x03000000:NameValue):Severity = 3 (INTEGER)
(0x03000000:NameValue):Number = 2488 (INTEGER)
(0x03000000:NameValue):Text = 'Error detected, rethrowing' (CHARACTER)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = '.SAP2MB_IDOC_Compute_ProcessIDOC.Main' (CHARACTER)
)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = '15.2' (CHARACTER)
)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = 'DECLARE u1208 CHARACTER CAST(InputRoot.DataObject.*:*[1].IDocStreamData AS CHARACTER CCSID CCSIDTOUSE);' (CHARACTER)
)
(0x01000000:Name ):RecoverableException = (
(0x03000000:NameValue):File = '/build/S700_P/src/DataFlowEngine/ImbRdl/ImbRdlTypeCast.cpp' (CHARACTER)
(0x03000000:NameValue):Line = 176 (INTEGER)
(0x03000000:NameValue):Function = 'SqlTypeCast::evaluate' (CHARACTER)
(0x03000000:NameValue):Type = 'ComIbmComputeNode' (CHARACTER)
(0x03000000:NameValue):Name = 'SAP2MB_IDOC#FCMComposite_1_6' (CHARACTER)
(0x03000000:NameValue):Label = 'SAP2MB_IDOC.CPT.PROCESS.IDOC' (CHARACTER)
(0x03000000:NameValue):Catalog = 'BIPmsgs' (CHARACTER)
(0x03000000:NameValue):Severity = 3 (INTEGER)
(0x03000000:NameValue):Number = 2906 (INTEGER)
(0x03000000:NameValue):Text = '' (CHARACTER)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = '.SAP2MB_IDOC_Compute_ProcessIDOC.Main' (CHARACTER)
)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = '15.21' (CHARACTER)
)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = 'NULL' (CHARACTER)
)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = 'CCSID' (CHARACTER)
)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = 'CAST' (CHARACTER)
)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = 'INTEGER' (CHARACTER)
)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = 'NULL' (CHARACTER)
)
)
)
)
)
Back to top
View user's profile Send private message
kimbert
PostPosted: Fri Mar 07, 2014 2:39 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Your problem looks very similar to
http://www.mqseries.net/phpBB2/viewtopic.php?p=371779&sid=96f64d1498db8a8902804bfaa9f9b129

Do you work with sudeepd2005?

Either way, please read what I posted in that thread.
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
Back to top
View user's profile Send private message
sandyvedi
PostPosted: Fri Mar 07, 2014 3:35 am    Post subject: Reply with quote

Newbie

Joined: 06 Mar 2014
Posts: 3

Not sure abt sudeepd2005 is, but code looks from repository.
I am asked to retrieve the the CCSID from the idoc .
But this value is populated as null -

InputRoot.Properties.CodedCharSetId

Can you please suggest is there some other way to fetch the CCSID ?
Back to top
View user's profile Send private message
Gralgrathor
PostPosted: Fri Mar 07, 2014 7:25 am    Post subject: Reply with quote

Master

Joined: 23 Jul 2009
Posts: 297

sandyvedi wrote:
Can you please suggest is there some other way to fetch the CCSID ?

What does a dump of the complete object look like? From a trace node, I mean?
_________________
A measure of wheat for a penny, and three measures of barley for a penny; and see thou hurt not the oil and the wine.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Not able to set CCSID in 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.