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 » Trim to required length in CWF Message Set

Post new topic  Reply to topic
 Trim to required length in CWF Message Set « View previous topic :: View next topic » 
Author Message
Adi3
PostPosted: Wed May 16, 2007 12:33 pm    Post subject: Trim to required length in CWF Message Set Reply with quote

Novice

Joined: 19 Dec 2006
Posts: 15

Is there any option to trim for required length in CWF Message Set.

For eg:
There is a field called "Name" in Output MRM (CWF format):
Name Length(15) String

In esql:
OutputRoot.MRM.Name = InputRoot.MRM.XXX.Name

Since Input MRM is a XML format it can be of any length i.e. more than 15

If the input is more than 15, the above line throws exception due to exceeding the length in CWF.

To avoid this it can be coded as:
OutputRoot.MRM.Name = Substring(InputRoot.MRM.XXX.Name from 1 for 15)

I have more fields like this, do I need to use Substring for each field.
I would like to know instead of controlling thru coding, is there any properties in message set to trim for required length.
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed May 16, 2007 12:44 pm    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

There is no such option, but IBM are aware that it would be useful to have one.
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 » Trim to required length in CWF Message Set
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.