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 » problem in transformation

Post new topic  Reply to topic
 problem in transformation « View previous topic :: View next topic » 
Author Message
elvis_gn
PostPosted: Fri Feb 10, 2006 1:52 am    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi praveenraju,

The value in BTPckId is a string(CHARACTER)...

You are trying to add an integer to it.

Untested code
Code:
SET OutputRoot.XML.rootx.sr.crf.BTPckId=CAST(CAST(InputRoot.XML.rootx.sr.crf.BTPckId AS INTEGER) + 100 AS CHARACTER);


Regards.
Back to top
View user's profile Send private message Send e-mail
fschofer
PostPosted: Fri Feb 10, 2006 1:59 am    Post subject: Reply with quote

Knight

Joined: 02 Jul 2001
Posts: 524
Location: Mainz, Germany

Hi,
additionel use

XML.rootx.sr.BTPckId instead of XML.rootx.sr.crf.BTPckId

Greetings
Frank
Back to top
View user's profile Send private message Send e-mail
elvis_gn
PostPosted: Fri Feb 10, 2006 2:07 am    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

fschofer:
Thanks missed that

praveenraju:
Please please, pick up the ESQL pdf and simply read through the commands...
We cannot be taking you through your entire learning curve.

Regards.
Back to top
View user's profile Send private message Send e-mail
mgk
PostPosted: Fri Feb 10, 2006 2:34 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

But you don't need to use a CAST at all, and if you do it will be slower. In your case an implicit cast will be done for you automatically. Your problem was simply that you were using the wrong field name as fschofer pointed out.

However, your code also did:

Quote:
CALL CopyMessageHeaders();
SET OutputRoot=InputRoot;


And you do not need to do both, because SET OutputRoot = InputRoot copies the headers as well as the body. Therefore, the CALL to CopyMessageHeaders is a waste of time.


Regards,

Regards,
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
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 » problem in transformation
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.