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 » Optional Elements in MRM

Post new topic  Reply to topic
 Optional Elements in MRM « View previous topic :: View next topic » 
Author Message
dsmq
PostPosted: Wed Jul 02, 2003 10:38 am    Post subject: Optional Elements in MRM Reply with quote

Acolyte

Joined: 20 Jun 2002
Posts: 59

Hi

I gave Min Occurs for all optional fields as Zero in my message set . But if i get those fields in my Input Message , my transformation is failing.

Can anybody help me in this.

Thanks
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Jul 02, 2003 11:45 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Not all types of MRM models support optional fields.

You'll need to be more specific about your model and the type of data you're trying to parse before we can help.
Back to top
View user's profile Send private message
dsmq
PostPosted: Wed Jul 02, 2003 4:35 pm    Post subject: Optional Elements in MRM Reply with quote

Acolyte

Joined: 20 Jun 2002
Posts: 59

Thanks for u r reply

My Message contains two Compound Types, One with Fixed Length and the other one with Variable length Tag delimiter. Length of Tag is 3.

For Ex

I am Getting Following Fields in my Message

NAM
MOR
RPI
CNF


but in my Transformation ( in compute Node) i am using Following Fields

NAM
MOR
F2A
RPI

When ever it is coming for F2A field which is not in the message it is Failing

Thanks in Advance
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Jul 03, 2003 7:07 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You can't use optional fields within fixed length types. They have to be present in the input message (even if they're blank).

If you are trying to ADD data to a message, then you can model the message twice - once as the input message without the field and once as the output message with the new field.

However, you can have optional fixed length types. That is, you can have an optional element of a fixed length type - which it sounds like you're trying to do. So your model should be something like
Code:
Message
   Records
      NAMelement (required)
      MORelement(required)
      F2Aelement(optional)
      RPIelement(required)
      CNFelement(required)

Each XXXelement is of the compound type that describes that record - which may be fixed length or variable elements tagged delimited. The Records type is a compound type of Choice composition, and is of Tagged Delimited type. The Message type is also of Tagged Delimited type and contains a single element of Records type which is a repeating element.

The tag length on all types is 3. And you set the tag on each XXXelement to be the tag, which for the NAMelement would be NAM.

If I understand your question properly, that is.
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 » Optional Elements in 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.