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 » Auto-generating fields thru MRM

Post new topic  Reply to topic
 Auto-generating fields thru MRM « View previous topic :: View next topic » 
Author Message
lung
PostPosted: Tue Oct 22, 2002 1:54 am    Post subject: Auto-generating fields thru MRM Reply with quote

Master

Joined: 27 Aug 2002
Posts: 291
Location: Malaysia

Let say I have an XML message coming in as...

<XML>
<B>abc</B>
</XML>

I want to convert this XML to fixed format, so I'm using MRM. However in my MRM, I defined it as...

FieldA: max length = 3
FieldB: max length = 3

The reason is because I want my output message to be ' abc' (notice the 3 empty spaces in front of 'abc'). However, MRM will not automatically generate a field not found in the input message, instead, it will throw an exception.

I understand that if my input message is...

<XML>
<A></A>
<B>abc</B>
</XML>

Then my flow will work and my output will be ' abc', but this is just an example. In reality, my output message consists of dozens of fields which is not found in the input message, so it is not feasible if I am to manually define all the extra fields in a compute node, although it can be done.

When a message is parsed from xml to mrm (or vice versa), WMQI has the ability to pad empty spaces in a field, but does it has the ability to generate fields which is not found in xml but in the mrm?

Thanks all!
_________________
lung
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
JLRowe
PostPosted: Tue Oct 22, 2002 3:57 am    Post subject: Reply with quote

Yatiri

Joined: 25 May 2002
Posts: 664
Location: South East London

You can use default values in MRM. Create an element value with 3 spaces, attach it to the element with a role of default value.
Back to top
View user's profile Send private message Send e-mail
lung
PostPosted: Tue Oct 22, 2002 4:39 pm    Post subject: Reply with quote

Master

Joined: 27 Aug 2002
Posts: 291
Location: Malaysia

It works! Thanks loads jlrowe!
_________________
lung
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Auto-generating fields thru MRM
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.