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 » To Use 'TRIM with Trailing whitespaces' in msgset

Post new topic  Reply to topic
 To Use 'TRIM with Trailing whitespaces' in msgset « View previous topic :: View next topic » 
Author Message
umaneesh
PostPosted: Wed Jul 22, 2009 11:23 pm    Post subject: To Use 'TRIM with Trailing whitespaces' in msgset Reply with quote

Novice

Joined: 13 Apr 2009
Posts: 24

Hi

I have a requirement like this,


Message:

{AIRway caps INTL regular <CR><LF>
Ashoke dalmin lencher <CR><LF>
Amount:1000578,00 <CR><LF>
}

In this message, I am receiving unwanted trailing whitespaces [before delimiter 'crlf']. It may or may not occur in each lines. I have to remove these whitespaces using one msgset [as per the requirement!].

I know this is possible with ESQL. But what is the possibility of doing this with MRM's?

Remember each line consists of variable length fields not fixed!

Pls suggest ...

Thanks
Back to top
View user's profile Send private message
jp_schiller
PostPosted: Thu Jul 23, 2009 4:37 am    Post subject: Reply with quote

Newbie

Joined: 10 Dec 2008
Posts: 2

Hi,
you can use the property: "Trim on input" --> Trim padding characters in the TDS Format message set properties.

The whitespaces get there because your physical properties of each element formats it into it because the MessageDefinition e.g. file says: "Padding Character": SPACE (this is the section where you see the length of the field etc.)

You can change it globally in the MessageSet configuration for your TDS format: e.g. Text1 --> section "Character data settings".

Just set there: "Trim padding characters" or the other options.
See: http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/index.jsp?topic=/com.ibm.etools.mft.doc/ad09265_.htm


Hard to describe it via text. Screenshot would be easier

Cheers,
JP
Back to top
View user's profile Send private message
umaneesh
PostPosted: Thu Jul 23, 2009 5:28 am    Post subject: Reply with quote

Novice

Joined: 13 Apr 2009
Posts: 24

jp_schiller wrote:
Hi,
you can use the property: "Trim on input" --> Trim padding characters in the TDS Format message set properties.
You can change it globally in the MessageSet configuration for your TDS format: e.g. Text1 --> section "Character data settings".

Just set there: "Trim padding characters" or the other options.



Thanks for your valuable inputs JP!

I believe these options [trim on input] are for fixed length strings only! However I would like to test this again to confirm on this. I am looking for "Variable length elements" ...
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 » To Use 'TRIM with Trailing whitespaces' in msgset
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.