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 » Message Modeling - Doubt

Post new topic  Reply to topic Goto page Previous  1, 2
 Message Modeling - Doubt « View previous topic :: View next topic » 
Author Message
Gaya3
PostPosted: Mon Aug 24, 2009 3:15 am    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

nagarjun_vv wrote:
AHD1234
123456AAAA<CR><LF>
123457BBBB<CR><LF>
ATH1234

If you can consider the above message as like this

AHD1234
123456AAAA<CR><LF>
123457BBBB<CR><LF>
ATH

The above wil be a complex type where AHD is Group indicator and ATH is group terminator. first element with fixed length of 4 and other element with repeating delimited.

1234
this is another field in the message.

Confirmwhether this will solve the issue.

Regards,
VV


Yes, 1234 is another field in the message, the TAG is having only 3 character
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
Gaya3
PostPosted: Mon Aug 24, 2009 3:45 am    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

any thoughts..or ideas on this regard
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Aug 24, 2009 5:15 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

You have to make a choice.
a) Set 'Data Element Separation' to 'Use Data Pattern', and make the message a repeating choice
b) Set 'Data Element Separation' to 'Tagged Fixed Length' and have a slightly more complex logical model

I suggest b), and I've sketched out a possible solution:
Code:
Element name="message"
  complexType composition="sequence" DataElementSeparation="Tagged Fixed Length" TagLength="0"
    group composition="sequence" DataElementSeparation="Tagged Fixed Length" TagLength="3" GroupTerminator="<CR><LF>
      element name="Header" Tag="ATD" length="4"
    group composition="sequence" DataElementSeparation="All Elements Delimited" GroupTerminator="<CR><LF>ATH"
      element name="details" maxOccurs=-1
        complexType composition="sequence" DataElementSeparation="All Elements Delimited" GroupTerminator="<CR><LF>"
          element name="details1" length="..."
          element name="details2" length="..."
          ...
    element name="Trailer" tag="" length="4"


I expect you will have to make some adjustments, but this should put on on the right track. When debugging this, please use debug-level User Trace to find out what the TDS parser is actually doing.
Back to top
View user's profile Send private message
Gaya3
PostPosted: Mon Aug 24, 2009 7:32 am    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

the datas are not getting allocated properly.

HdrGrp - Tagged Fixed Format, <CR><LF>
Element - Header - ADH, length = 3

DetGrp - All Elements Delimited, GroupTerminator=<CR><LF>ATH
Element - Details - maxOccurs=-1
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Aug 24, 2009 9:49 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

I don't think you have the right structure.

The Header and Trailer elements in the model need to be siblings. The Header type needs to include a repeating instance of the body element.

Message
-->Header
-->-->Detail
-->Trailer
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Aug 24, 2009 10:17 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
the datas are not getting allocated properly.
Oh, that's bad . What would you like me to do about it?

Quote:
HdrGrp - Tagged Fixed Format, <CR><LF>
Element - Header - ADH, length = 3

DetGrp - All Elements Delimited, GroupTerminator=<CR><LF>ATH
Element - Details - maxOccurs=-1
Have you created your message model exactly as I suggested? This makes me think that the answer is probably 'no'.

Have you taken the steps that I suggested in my previous post?
Back to top
View user's profile Send private message
nagarjun_vv
PostPosted: Mon Aug 24, 2009 6:19 pm    Post subject: Reply with quote

Apprentice

Joined: 24 Jun 2008
Posts: 33

You can go for variable length delimiter. Let me explain in detail.

In variable length delimiter Have a message with 2 fields.
1--> is complex type and
2--> is simple type

In 1--> which is complex type with 2 fields

1st field give length as 4
2 field make it as repeating delimiter

Group indicator of this complex type is AHD
Group terminator of this coplex type is ATH


The next simple type in the message give the length as 4(which is 1234 after ATH)

Please provide some mail id so that i can send the messge set whcih i did which satisfies your requirement.
Back to top
View user's profile Send private message Send e-mail
Gaya3
PostPosted: Tue Aug 25, 2009 3:44 am    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

kimbert wrote:
Quote:
the datas are not getting allocated properly.
Oh, that's bad . What would you like me to do about it?

Quote:
HdrGrp - Tagged Fixed Format, <CR><LF>
Element - Header - ADH, length = 3

DetGrp - All Elements Delimited, GroupTerminator=<CR><LF>ATH
Element - Details - maxOccurs=-1
Have you created your message model exactly as I suggested? This makes me think that the answer is probably 'no'.

Have you taken the steps that I suggested in my previous post?


Really Thanks, I went through the way that you suggested...

It is working now...as you said, we have to take care a lot of things in this particular message modeling..
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Message Modeling - Doubt
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.