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 » Repeating Fields in MRM - WMQI v2.1

Post new topic  Reply to topic
 Repeating Fields in MRM - WMQI v2.1 « View previous topic :: View next topic » 
Author Message
EvolutionQuest
PostPosted: Wed Feb 11, 2004 1:56 pm    Post subject: Repeating Fields in MRM - WMQI v2.1 Reply with quote

Voyager

Joined: 18 Sep 2001
Posts: 88
Location: Billings, MT

I need to clarify my issue a little more in relation to repeating groups. The following below is what I started out doing, but I need to simplify this a little more. Based on a simple MRM that has a group id: Group1 and each element of that group is delimited by a | what is the simpliest way to enact a repeating group of messages? I seem to be having trouble getting this to work, and I don't know why?

Some insight is greatly appreciated since the docs are not forthright.

Chris

This can not be this hard to construct. I have constructed a complex type which contains a set of elements.

Complex Types: Group1Elements in each type: Field1, Field2, Field3
Message: MyTest which has elements MyTest1 (Group1)

Under Types:
Group1-4: Type Comp: Sequence, Type Cont: Closed
The TDS for Group1-4 => Group Ind: Group1, Group Term: ~, Date Elem Sep: All Elements Delimited, Delimiter: |

Under Messages:
The Connection for Group1 => Repeat, Min Occur: 1, Max Occur: 1
The TDS for Group1 => All fields blank

Elements:
The TDS for Field1-3 => default values

The message =>
Group1|Field1|Field2|Field3~
Group1|Field1|Field2|Field3~
Group1|Field1|Field2|Field3~
Group1|Field1|Field2|Field3~
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
Michael Dag
PostPosted: Wed Feb 11, 2004 2:35 pm    Post subject: Re: Repeating Fields in MRM - WMQI v2.1 Reply with quote

Jedi Knight

Joined: 13 Jun 2002
Posts: 2607
Location: The Netherlands (Amsterdam)

cfryett wrote:

Group1|Field1|Field2|Field3~
Group1|Field1|Field2|Field3~
Group1|Field1|Field2|Field3~
Group1|Field1|Field2|Field3~

Is this the input message or output?

I recall from the class (about a year ago and haven't done much work in this particular area...) to model the messages 'inside out'...
So what I see is a simple Record with fields seperated by |
AND
I see a list of records where the records are seperated by ~

This should be a lot easier to put into the MRM/TDS definitions than the other way around.

I hope this helped...

Michael
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
EvolutionQuest
PostPosted: Wed Feb 11, 2004 2:51 pm    Post subject: Reply with quote

Voyager

Joined: 18 Sep 2001
Posts: 88
Location: Billings, MT

Actually the message would look like Group1|Field1|Field2|Field3~Group1|Field1|Field2|Field3~ and so on. This would be an input message.

What I have created is a compound type called Group1 which contains elements Field1-3. Then I have a message called MyMessage with element MsgGroup1 (Group1). The TDS for the compound type is Group Ind. = Group1| and Group Term = ~. The Date Element Separation is All Elements Delimited and the Delimiter is |. The repeat is set to Yes and min and max are 1.

This should be simple but for some odd reason it just isn't clicking for me.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
Michael Dag
PostPosted: Wed Feb 11, 2004 3:01 pm    Post subject: Reply with quote

Jedi Knight

Joined: 13 Jun 2002
Posts: 2607
Location: The Netherlands (Amsterdam)

Chris,
I think you are only 1 'click' away...

Group1| is simply part of the record

So Record = Group1|Field1|Field2|Field3

Model this first,
then the message consists of Record~Record~Record
this should be the easy part, just create a compound like ListOfRecords with only Record in it, set delimiter to ~ and your off...

Michael
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Missam
PostPosted: Wed Feb 11, 2004 3:35 pm    Post subject: Reply with quote

Chevalier

Joined: 16 Oct 2003
Posts: 424

Hi,
I tried it on my box and i'm able to parse this message

First i created a CompoundType Lets Say Type1 with three Elements Field1,Field2 And Field3
Type1 Properties
----TypeComposition Sequence
----Type Content Closed
TDS Properties
---Group Indicator Group1|
---Group Terminator ~
All Elements Delimited
---Delimiter |

Create An Element Of Type1 Ele
Create One More Compound Type with Sequence as Type Composition And Closed As TypeContent
Set TDS All Elements Delimted and Delimiter As <LF>
Add Ele to This Type2
Set Ele Properties Repeating as Yes And Repeating Element Delimiter as <LF>
Create a Message Of Type2
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 » Repeating Fields in MRM - WMQI v2.1
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.